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