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