SavedGame.fromJson constructor

SavedGame.fromJson(
  1. Map json
)

Implementation

factory SavedGame.fromJson(Map json) {
  return SavedGame(
    json["name"],
    json["modificationDate"],
    json["deviceName"],
    description: json["description"],
    timePlayed: json["playedTimeMillis"] == null
        ? null
        : Duration(milliseconds: json["playedTimeMillis"]),
    coverImage: json["coverImage"],
  );
}