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