Store.fromJson constructor

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

get the Store from the json

Implementation

factory Store.fromJson(Map<String, dynamic> json) {
  return Store(
    id: json["id"] ?? 0,
    name: json["name"] ?? "",
    domain: json["domain"] ?? "",
    slug: json["slug"] ?? "",
    gamesCount: json["games_count"] ?? 0,
    imageBackground: json["image_background"] ?? "",
    description: json["description"] ?? "",
  );
}