fromJson static method
Inherited by: KeyboardButtonSourceMessage KeyboardButtonSourceWebApp
Implementation
static KeyboardButtonSourceWebApp? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return KeyboardButtonSourceWebApp(
botUserId: (json['bot_user_id'] as int?) ?? 0,
preparedButtonId: (json['prepared_button_id'] as String?) ?? '',
);
}