toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts this object to TDLib JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
  '@type': CONSTRUCTOR,
  'name': name.toJson(),
  'icon': icon?.toJson(),
  'color_id': colorId,
  'is_shareable': isShareable,
  'pinned_chat_ids': pinnedChatIds,
  'included_chat_ids': includedChatIds,
  'excluded_chat_ids': excludedChatIds,
  '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,
};