UpdateChatPermissions.fromJson constructor

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

Parse from a json

Implementation

factory UpdateChatPermissions.fromJson(Map<String, dynamic> json) =>
    UpdateChatPermissions(
      chatId: json['chat_id'],
      permissions: ChatPermissions.fromJson(json['permissions']),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );