ChatFilter.fromJson constructor
Parse from a json
Implementation
factory ChatFilter.fromJson(Map<String, dynamic> json) => ChatFilter(
title: json['title'],
iconName: json['icon_name'],
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'],
);