TournamentTeamResults.fromMap constructor

TournamentTeamResults.fromMap(
  1. Map<String, dynamic> json
)

Decodes TournamentTeamResults object from json map

Implementation

factory TournamentTeamResults.fromMap(Map<String, dynamic> json) =>
    TournamentTeamResults(
      idTeam: json['idteam'] == null ? null : json['idteam'],
      currentName: json['current_name'] == null ? null : json['current_name'],
      baseName: json['base_name'] == null ? null : json['base_name'],
      position: json['position'] == null ? null : json['position'],
      questionsTotal:
          json['questions_total'] == null ? null : json['questions_total'],
      mask: json['mask'] == null ? null : json['mask'],
      techRatingRt:
          json['tech_rating_rt'] == null ? null : json['tech_rating_rt'],
      techRatingRg:
          json['tech_rating_rg'] == null ? null : json['tech_rating_rg'],
      techRatingRb:
          json['tech_rating_rb'] == null ? null : json['tech_rating_rb'],
      ratingR: json['rating_r'] == null ? null : json['rating_r'],
      predictedPosition: json['predicted_position'] == null
          ? null
          : json['predicted_position'],
      bonusB: json['bonus_b'] == null ? null : json['bonus_b'],
      diffBonus: json['diff_bonus'] == null ? null : json['diff_bonus'],
      includedInRating: json['included_in_rating'] == null
          ? null
          : json['included_in_rating'],
    );