feat: Add toJson method for StoredInboundGroupSession
This commit is contained in:
parent
c3d47b16c6
commit
9631cea83a
|
|
@ -54,4 +54,17 @@ class StoredInboundGroupSession {
|
|||
senderKey: json['sender_key'],
|
||||
senderClaimedKeys: json['sender_claimed_keys'],
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'client_id': clientId,
|
||||
'room_id': roomId,
|
||||
'session_id': sessionId,
|
||||
'pickle': pickle,
|
||||
'content': content,
|
||||
'indexes': indexes,
|
||||
'allowed_at_index': allowedAtIndex,
|
||||
'uploaded': uploaded,
|
||||
'sender_key': senderKey,
|
||||
'sender_claimed_keys': senderClaimedKeys,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue