DifficultyInformation.fromJson constructor Null safety
Implementation
DifficultyInformation.fromJson(Map<String, dynamic> json) {
easy = json['Easy'] != null ? Easy.fromJson(json['Easy']) : null;
medium = json['Medium'] != null ? Easy.fromJson(json['Medium']) : null;
extreme =
json['Extreme'] != null ? Easy.fromJson(json['Extreme']) : null;
hard = json['Hard'] != null ? Easy.fromJson(json['Hard']) : null;
}