fromJson static method

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

Implementation

static BotCommandScopeChatAdministrators? fromJson(
  Map<String, dynamic>? json,
) {
  if (json == null) {
    return null;
  }

  return BotCommandScopeChatAdministrators(
    chatId: (json['chat_id'] as int?) ?? 0,
  );
}