mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 03:02:22 +01:00
20 lines
473 B
Dart
20 lines
473 B
Dart
import 'dart:io';
|
|
|
|
class FortniteVersion {
|
|
String name;
|
|
String gameVersion;
|
|
Directory location;
|
|
|
|
FortniteVersion.fromJson(json)
|
|
: name = json["name"],
|
|
gameVersion = json["gameVersion"],
|
|
location = Directory(json["location"]);
|
|
|
|
FortniteVersion({required this.name, required this.gameVersion, required this.location});
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
'name': name,
|
|
'gameVersion': gameVersion,
|
|
'location': location.path
|
|
};
|
|
} |