toJson method

Map<String, dynamic> toJson()

get the json from the model

Implementation

Map<String, dynamic> toJson() => {
      "id": id,
      "name": name,
      "slug": slug,
      "games_count": gamesCount,
      "image_background": imageBackground,
    };