TriviaCategories.fromJson constructor Null safety
Implementation
TriviaCategories.fromJson(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
}
TriviaCategories.fromJson(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
}