mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 03:02:22 +01:00
<feat: New project structure>
<feat: New release>
This commit is contained in:
17
common/lib/src/model/fortnite_version.dart
Normal file
17
common/lib/src/model/fortnite_version.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
import 'dart:io';
|
||||
|
||||
class FortniteVersion {
|
||||
String name;
|
||||
Directory location;
|
||||
|
||||
FortniteVersion.fromJson(json)
|
||||
: name = json["name"],
|
||||
location = Directory(json["location"]);
|
||||
|
||||
FortniteVersion({required this.name, required this.location});
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'name': name,
|
||||
'location': location.path
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user