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 json) => _$CreateRoomParamsFromJson(json); Map toJson() => _$CreateRoomParamsToJson(this); }