SavedGame.fromJson constructor
SavedGame.fromJson(
- 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"],
);
}