fromJson static method

KeyboardButtonSourceWebApp? fromJson(
  1. Map<String, dynamic>? json
)
override

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?) ?? '',
  );
}