toJson method
Implementation
@override
Map<String, dynamic> toJson() => <String, dynamic>{
'name': name?.toJson(),
'icon': icon?.toJson(),
'color_id': colorId,
'is_shareable': isShareable,
'pinned_chat_ids': pinnedChatIds.map((item) => item).toList(),
'included_chat_ids': includedChatIds.map((item) => item).toList(),
'excluded_chat_ids': excludedChatIds.map((item) => item).toList(),
'exclude_muted': excludeMuted,
'exclude_read': excludeRead,
'exclude_archived': excludeArchived,
'include_contacts': includeContacts,
'include_non_contacts': includeNonContacts,
'include_bots': includeBots,
'include_groups': includeGroups,
'include_channels': includeChannels,
'@type': constructor,
};