fromJson static method
Inherited by: InlineKeyboardButtonTypeBuy InlineKeyboardButtonTypeCallbackGame InlineKeyboardButtonTypeCallbackWithPassword InlineKeyboardButtonTypeCallback InlineKeyboardButtonTypeCopyText InlineKeyboardButtonTypeDisabled InlineKeyboardButtonTypeLoginUrl InlineKeyboardButtonTypeSwitchInline InlineKeyboardButtonTypeUrl InlineKeyboardButtonTypeUser InlineKeyboardButtonTypeWebApp
Implementation
static InlineKeyboardButtonTypeUser? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return InlineKeyboardButtonTypeUser(
userId: (json['user_id'] as int?) ?? 0,
);
}