CategoryInformation.fromJson(- Map<String, dynamic> json
)
Implementation
CategoryInformation.fromJson(Map<String, dynamic> json) {
generalKnowledge = json['GeneralKnowledge'] != null
? Easy.fromJson(json['GeneralKnowledge'])
: null;
art = json['Art'] != null ? Easy.fromJson(json['Art']) : null;
entertainment = json['Entertainment'] != null
? Easy.fromJson(json['Entertainment'])
: null;
science =
json['Science'] != null ? Easy.fromJson(json['Science']) : null;
mythology =
json['Mythology'] != null ? Easy.fromJson(json['Mythology']) : null;
history =
json['History'] != null ? Easy.fromJson(json['History']) : null;
sports = json['Sports'] != null ? Easy.fromJson(json['Sports']) : null;
}