ChatFolder.fromJson constructor
Parse from a json
Implementation
factory ChatFolder.fromJson(Map<String, dynamic> json) => ChatFolder(
title: json['title'],
icon:
json['icon'] == null ? null : ChatFolderIcon.fromJson(json['icon']),
isShareable: json['is_shareable'],
pinnedChatIds: List<int>.from(
(json['pinned_chat_ids'] ?? []).map((item) => item).toList()),
includedChatIds: List<int>.from(
(json['included_chat_ids'] ?? []).map((item) => item).toList()),
excludedChatIds: List<int>.from(
(json['excluded_chat_ids'] ?? []).map((item) => item).toList()),
excludeMuted: json['exclude_muted'],
excludeRead: json['exclude_read'],
excludeArchived: json['exclude_archived'],
includeContacts: json['include_contacts'],
includeNonContacts: json['include_non_contacts'],
includeBots: json['include_bots'],
includeGroups: json['include_groups'],
includeChannels: json['include_channels'],
extra: json['@extra'],
clientId: json['@client_id'],
);