toJson method
Converts a ChatShared to a Map for JSON encoding.
Implementation
Map<String, dynamic> toJson() {
return {
'request_id': requestId,
'chat_id': chatId,
'title': title,
'username': username,
'photo': photo?.map((size) => size.toJson()).toList(),
};
}