PlayerStatsDto.fromJson constructor

PlayerStatsDto.fromJson(
  1. Map<String, dynamic> json
)

Implementation

PlayerStatsDto.fromJson(Map<String, dynamic> json) {
  score = json['score'] ?? 0;
  roundsPlayed = json['roundsPlayed'] ?? 0;
  kills = json['kills'] ?? 0;
  deaths = json['deaths'] ?? 0;
  assists = json['assists'] ?? 0;
  playtimeMillis = json['playtimeMillis'] ?? 0;
  abilityCasts = AbilityCastsDto.fromJson(json['abilityCasts']!);
}