toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'chatFolder',
    if (extra != null) '@extra': extra,
    'title': title,
    'icon': icon,
    'is_shareable': is_shareable,
    'pinned_chat_ids': pinned_chat_ids,
    'included_chat_ids': included_chat_ids,
    'excluded_chat_ids': excluded_chat_ids,
    'exclude_muted': exclude_muted,
    'exclude_read': exclude_read,
    'exclude_archived': exclude_archived,
    'include_contacts': include_contacts,
    'include_non_contacts': include_non_contacts,
    'include_bots': include_bots,
    'include_groups': include_groups,
    'include_channels': include_channels
  };
}