UserPrivacySettingRuleRestrictChatMembers.fromJson constructor

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

Parse from a json

Implementation

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