working sync complete
This commit is contained in:
parent
4862bf47c7
commit
97f2673b55
11 changed files with 61 additions and 100 deletions
|
|
@ -9,24 +9,24 @@ abstract class Event with _$Event {
|
|||
@JsonKey(name: "rowid") required int rowId,
|
||||
@JsonKey(name: "timeline_rowid") required int timelineRowId,
|
||||
required String roomId,
|
||||
required int eventId,
|
||||
@JsonKey(name: "sender") required int authorId,
|
||||
required String eventId,
|
||||
@JsonKey(name: "sender") required String authorId,
|
||||
required String type,
|
||||
required String stateKey,
|
||||
String? stateKey,
|
||||
@EpochDateTimeConverter() required DateTime timestamp,
|
||||
required Map<String, dynamic> content,
|
||||
required Map<String, dynamic> decrypted,
|
||||
required Map<String, dynamic> decryptedType,
|
||||
required Map<String, dynamic> unsigned,
|
||||
required LocalContent localContent,
|
||||
required String transactionId,
|
||||
required String redactedBy,
|
||||
required String relatesTo,
|
||||
required String relatesType,
|
||||
required String decryptionError,
|
||||
required String sendError,
|
||||
required Map<String, int> reactions,
|
||||
required int lastEditRowId,
|
||||
Map<String, dynamic>? decrypted,
|
||||
String? decryptedType,
|
||||
@Default({}) Map<String, dynamic> unsigned,
|
||||
LocalContent? localContent,
|
||||
String? transactionId,
|
||||
String? redactedBy,
|
||||
String? relatesTo,
|
||||
String? relatesType,
|
||||
String? decryptionError,
|
||||
String? sendError,
|
||||
@Default({}) Map<String, int> reactions,
|
||||
int? lastEditRowId,
|
||||
@UnreadTypeConverter() UnreadType? unreadType,
|
||||
}) = _Event;
|
||||
|
||||
|
|
@ -36,13 +36,11 @@ abstract class Event with _$Event {
|
|||
@freezed
|
||||
abstract class LocalContent with _$LocalContent {
|
||||
const factory LocalContent({
|
||||
required String sanitizedHtml,
|
||||
required String htmlVersion,
|
||||
required bool wasPlaintext,
|
||||
required bool bigEmoji,
|
||||
required bool hasMath,
|
||||
required String editSource,
|
||||
required String replyFallbackRemoved,
|
||||
String? sanitizedHtml,
|
||||
bool? wasPlaintext,
|
||||
bool? bigEmoji,
|
||||
bool? hasMath,
|
||||
bool? replyFallbackRemoved,
|
||||
}) = _LocalContent;
|
||||
|
||||
factory LocalContent.fromJson(Map<String, Object?> json) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue