import "package:freezed_annotation/freezed_annotation.dart"; part "send_event_request.freezed.dart"; part "send_event_request.g.dart"; @freezed abstract class SendEventRequest with _$SendEventRequest { const factory SendEventRequest({ required String roomId, required String type, required Map content, @Default(false) bool synchronous, @Default(false) bool disableEncryption, }) = _SendEventRequest; factory SendEventRequest.fromJson(Map json) => _$SendEventRequestFromJson(json); }