fromJson static method
Inherited by: BotCommandScopeAllChatAdministrators BotCommandScopeAllGroupChats BotCommandScopeAllPrivateChats BotCommandScopeChat BotCommandScopeChatAdministrators BotCommandScopeChatMember BotCommandScopeDefault
Implementation
static BotCommandScopeChatAdministrators? fromJson(
Map<String, dynamic>? json,
) {
if (json == null) {
return null;
}
return BotCommandScopeChatAdministrators(
chatId: (json['chat_id'] as int?) ?? 0,
);
}