toJson method

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

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) {
  return {
    "@type": CONSTRUCTOR,
    "title": title,
    "icon_name": iconName,
    "pinned_chat_ids": pinnedChatIds.map((i) => i).toList(),
    "included_chat_ids": includedChatIds.map((i) => i).toList(),
    "excluded_chat_ids": excludedChatIds.map((i) => i).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,
  };
}