DifficultyInformation.fromJson constructor Null safety

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

Implementation

DifficultyInformation.fromJson(Map<String, dynamic> json) {
  easy = Easy.fromJson(json['Easy']);
  medium = Easy.fromJson(json['Medium']);
  extreme = Easy.fromJson(json['Extreme']);
  hard = Easy.fromJson(json['Hard']);
}