Publisher.fromJson constructor
get the model from the json
Implementation
factory Publisher.fromJson(Map<String, dynamic> json) {
return Publisher(
id: json["id"] ?? 0,
name: json["name"] ?? "",
slug: json["slug"] ?? "",
gamesCount: json["games_count"] ?? 0,
imageBackground: json["image_background"] ?? "",
);
}