toJson method
Implementation
@override
Map<String, dynamic> toJson() => <String, dynamic>{
'chat_id': chatId,
'message_ids': messageIds.map((item) => item).toList(),
'is_permanent': isPermanent,
'from_cache': fromCache,
'@type': constructor,
};