Added functionality to create chat

This commit is contained in:
2023-06-08 21:27:51 +02:00
parent 0f3fe75bad
commit 82b10e4eed
4 changed files with 99 additions and 2 deletions

View 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);
}