Genre.fromJson constructor

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

Implementation

factory Genre.fromJson(Map<String, dynamic> json) {
  return Genre(
    id: json['id'],
    name: json['name'],
  );
}