fromJson static method
Inherited by: UserPrivacySettingRuleAllowAll UserPrivacySettingRuleAllowBots UserPrivacySettingRuleAllowChatMembers UserPrivacySettingRuleAllowContacts UserPrivacySettingRuleAllowPremiumUsers UserPrivacySettingRuleAllowUsers UserPrivacySettingRuleRestrictAll UserPrivacySettingRuleRestrictBots UserPrivacySettingRuleRestrictChatMembers UserPrivacySettingRuleRestrictContacts UserPrivacySettingRuleRestrictUsers
Implementation
static UserPrivacySettingRuleRestrictChatMembers? fromJson(
Map<String, dynamic>? json,
) {
if (json == null) {
return null;
}
return UserPrivacySettingRuleRestrictChatMembers(
chatIds: List<int>.from(
tdListFromJson(
json['chat_ids'],
).map((item) => int.tryParse((item as dynamic)?.toString() ?? '') ?? 0),
),
);
}