mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 03:02:22 +01:00
22 lines
542 B
Dart
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;
|
|
} |