BotCommandScopeChatAdministrators.fromJson constructor

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

Parses a BotCommandScopeChatAdministrators from TDLib JSON.

Implementation

factory BotCommandScopeChatAdministrators.fromJson(
  Map<String, dynamic> json,
) => BotCommandScopeChatAdministrators(chatId: _readInt(json['chat_id']));