Added functionality to create chat
This commit is contained in:
27
lib/api/marianumcloud/talk/createRoom/createRoomParams.dart
Normal file
27
lib/api/marianumcloud/talk/createRoom/createRoomParams.dart
Normal file
@ -0,0 +1,27 @@
|
||||
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);
|
||||
}
|
Reference in New Issue
Block a user