Release 9.2.0

This commit is contained in:
Alessandro Autiero
2024-07-06 18:43:52 +02:00
parent 45b8629207
commit e3b8d7d182
91 changed files with 3871 additions and 3132 deletions

View File

@@ -1,17 +1,22 @@
import 'dart:io';
import 'package:version/version.dart';
class FortniteVersion {
String name;
Version content;
Directory location;
FortniteVersion.fromJson(json)
: name = json["name"],
: content = Version.parse(json["content"]),
location = Directory(json["location"]);
FortniteVersion({required this.name, required this.location});
FortniteVersion({required this.content, required this.location});
Map<String, dynamic> toJson() => {
'name': name,
'content': content.toString(),
'location': location.path
};
@override
bool operator ==(Object other) => other is FortniteVersion && this.content == other.content;
}