mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-14 03:32:23 +01:00
10.0.8
This commit is contained in:
@@ -1,22 +1,20 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:version/version.dart';
|
||||
|
||||
class FortniteVersion {
|
||||
Version content;
|
||||
String name;
|
||||
String gameVersion;
|
||||
Directory location;
|
||||
|
||||
FortniteVersion.fromJson(json)
|
||||
: content = Version.parse(json["content"]),
|
||||
: name = json["name"],
|
||||
gameVersion = json["gameVersion"],
|
||||
location = Directory(json["location"]);
|
||||
|
||||
FortniteVersion({required this.content, required this.location});
|
||||
FortniteVersion({required this.name, required this.gameVersion, required this.location});
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'content': content.toString(),
|
||||
'name': name,
|
||||
'gameVersion': gameVersion,
|
||||
'location': location.path
|
||||
};
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => other is FortniteVersion && this.content == other.content;
|
||||
}
|
||||
Reference in New Issue
Block a user