forked from Nexus/nexus
17 lines
552 B
Dart
17 lines
552 B
Dart
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<String, dynamic> content,
|
|
@Default(false) bool synchronous,
|
|
@Default(false) bool disableEncryption,
|
|
}) = _SendEventRequest;
|
|
|
|
factory SendEventRequest.fromJson(Map<String, Object?> json) =>
|
|
_$SendEventRequestFromJson(json);
|
|
}
|