Files
Reboot-Launcher/common/lib/src/model/fortnite_version.dart
Alessandro Autiero e3b8d7d182 Release 9.2.0
2024-07-06 18:43:52 +02:00

22 lines
542 B
Dart

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