Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Commit

Permalink
ForgeInstallProfile test
Browse files Browse the repository at this point in the history
  • Loading branch information
SiongSng committed Aug 11, 2021
1 parent 2783199 commit d865ac3
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions lib/MCLauncher/Forge/ForgeInstallProfile.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
class ForgeInstallProfile {
final String spec;
final String version;
final String path;
final String minecraft;
final String jsonPath;
final Map data;
final List processors;
final List libraries;

const ForgeInstallProfile({
required this.spec,
required this.version,
required this.path,
required this.minecraft,
required this.jsonPath,
required this.data,
required this.processors,
required this.libraries,
});

factory ForgeInstallProfile.fromJson(Map json) => ForgeInstallProfile(
spec: json['spec'],
version: json['version'],
path: json['path'],
minecraft: json['minecraft'],
jsonPath: json['json'],
data: json['data'],
processors: json['processors'],
libraries: json['libraries']);

Map<String, dynamic> toJson() => {
'spec': spec,
'version': version,
'path': path,
'minecraft': minecraft,
'jsonPath': jsonPath,
'data': data,
'processors': processors,
'libraries': libraries
};
}

0 comments on commit d865ac3

Please sign in to comment.