AbilityCastsDto.fromJson constructor

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

Implementation

AbilityCastsDto.fromJson(Map<String, dynamic> json) {
  grenadeCasts = json['grenadeCasts'] ?? 0;
  ability1Casts = json['ability1Casts'] ?? 0;
  ability2Casts = json['ability2Casts'] ?? 0;
  ultimateCasts = json['ultimateCasts'] ?? 0;
}