BotCommandScopeChatAdministrators.fromJson constructor

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

Creates a new BotCommandScopeChatAdministrators object from json.

Implementation

factory BotCommandScopeChatAdministrators.fromJson(
  Map<String, dynamic> json,
) {
  return BotCommandScopeChatAdministrators(
    chatId: ID.create(json['chat_id']),
  );
}