forked from Nexus/nexus
20 lines
624 B
Dart
20 lines
624 B
Dart
import "package:freezed_annotation/freezed_annotation.dart";
|
|
import "package:nexus/models/content/content.dart";
|
|
part "send_event.freezed.dart";
|
|
part "send_event.g.dart";
|
|
|
|
@freezed
|
|
abstract class SendEventRequest with _$SendEventRequest {
|
|
const factory SendEventRequest({
|
|
required String roomId,
|
|
required String type,
|
|
required Content content,
|
|
String? relatesTo,
|
|
String? relationType,
|
|
@Default(false) bool synchronous,
|
|
@Default(false) bool disableEncryption,
|
|
}) = _SendEventRequest;
|
|
|
|
factory SendEventRequest.fromJson(Map<String, Object?> json) =>
|
|
_$SendEventRequestFromJson(json);
|
|
}
|