fromJson static method

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

Implementation

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

  return InlineQueryResultGame(
    id: (json['id'] as String?) ?? '',
    game: Game.fromJson(tdMapFromJson(json['game'])),
  );
}