UserPrivacySettingRuleAllowChatMembers.fromJson constructor

UserPrivacySettingRuleAllowChatMembers.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory UserPrivacySettingRuleAllowChatMembers.fromJson(Map<String, dynamic> json) => UserPrivacySettingRuleAllowChatMembers(
  chatIds: List<int>.from((json['chat_ids'] ?? []).map((item) => item).toList()),
);