fromJson static method
Implementation
static BusinessRecipients? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return BusinessRecipients(
chatIds: List<int>.from(
tdListFromJson(
json['chat_ids'],
).map((item) => int.tryParse((item as dynamic)?.toString() ?? '') ?? 0),
),
excludedChatIds: List<int>.from(
tdListFromJson(
json['excluded_chat_ids'],
).map((item) => int.tryParse((item as dynamic)?.toString() ?? '') ?? 0),
),
selectExistingChats: (json['select_existing_chats'] as bool?) ?? false,
selectNewChats: (json['select_new_chats'] as bool?) ?? false,
selectContacts: (json['select_contacts'] as bool?) ?? false,
selectNonContacts: (json['select_non_contacts'] as bool?) ?? false,
excludeSelected: (json['exclude_selected'] as bool?) ?? false,
);
}