UpdateAddChatMembersPrivacyForbidden.fromJson constructor

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

Parse from a json

Implementation

factory UpdateAddChatMembersPrivacyForbidden.fromJson(
        Map<String, dynamic> json) =>
    UpdateAddChatMembersPrivacyForbidden(
      chatId: json['chat_id'],
      userIds: List<int>.from(
          (json['user_ids'] ?? []).map((item) => item).toList()),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );