UserPrivacySettingRuleAllowChatMembers.fromJson constructor

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

Parse from a json

Implementation

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