fromJson static method

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

Implementation

static InputMessageGame? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return InputMessageGame(
    botUserId: (json['bot_user_id'] as int?) ?? 0,
    gameShortName: (json['game_short_name'] as String?) ?? '',
  );
}