TriviaCategories.fromJson constructor Null safety

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

Implementation

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