everything but reconcile

This commit is contained in:
Christien Rioux 2024-05-29 10:47:43 -04:00
parent 37f6ca19f7
commit 6d05c9f125
8 changed files with 305 additions and 150 deletions

View file

@ -9,7 +9,10 @@ part of 'message_state.dart';
_$MessageStateImpl _$$MessageStateImplFromJson(Map<String, dynamic> json) =>
_$MessageStateImpl(
content: messageFromJson(json['content'] as Map<String, dynamic>),
timestamp: Timestamp.fromJson(json['timestamp']),
sentTimestamp: Timestamp.fromJson(json['sent_timestamp']),
reconciledTimestamp: json['reconciled_timestamp'] == null
? null
: Timestamp.fromJson(json['reconciled_timestamp']),
sendState: json['send_state'] == null
? null
: MessageSendState.fromJson(json['send_state']),
@ -18,6 +21,7 @@ _$MessageStateImpl _$$MessageStateImplFromJson(Map<String, dynamic> json) =>
Map<String, dynamic> _$$MessageStateImplToJson(_$MessageStateImpl instance) =>
<String, dynamic>{
'content': messageToJson(instance.content),
'timestamp': instance.timestamp.toJson(),
'sent_timestamp': instance.sentTimestamp.toJson(),
'reconciled_timestamp': instance.reconciledTimestamp?.toJson(),
'send_state': instance.sendState?.toJson(),
};