Client/lib/api/marianumcloud/talk/createRoom/createRoomParams.dart

28 lines
627 B
Dart

import 'package:json_annotation/json_annotation.dart';
import '../../../apiParams.dart';
part 'createRoomParams.g.dart';
@JsonSerializable()
class CreateRoomParams extends ApiParams {
int roomType;
String invite;
String? source;
String? roomName;
String? objectType;
String? objectId;
CreateRoomParams({
required this.roomType,
required this.invite,
this.source,
this.roomName,
this.objectType,
this.objectId
});
factory CreateRoomParams.fromJson(Map<String, dynamic> json) => _$CreateRoomParamsFromJson(json);
Map<String, dynamic> toJson() => _$CreateRoomParamsToJson(this);
}