app/lib/data/app_version_data.dart

48 lines
1.4 KiB
Dart
Raw Normal View History

2023-10-12 21:00:58 +08:00
/// lastVersion : "V2.9"
/// lastVersionCode : 13
/// lastBetaVersion : "V2.9"
/// lastBetaVersionCode : 13
/// minVersionCode : 13
/// minBetaVersionCode : 13
/// p4kDownloadUrl : "https://p4k.42kit.com/Data.p4k"
2023-10-09 09:32:07 +08:00
class AppVersionData {
AppVersionData({
this.lastVersion,
this.lastVersionCode,
this.lastBetaVersion,
this.lastBetaVersionCode,
this.minVersionCode,
2023-10-12 21:00:58 +08:00
this.minBetaVersionCode,
this.p4kDownloadUrl,});
2023-10-09 09:32:07 +08:00
AppVersionData.fromJson(dynamic json) {
lastVersion = json['lastVersion'];
lastVersionCode = json['lastVersionCode'];
lastBetaVersion = json['lastBetaVersion'];
lastBetaVersionCode = json['lastBetaVersionCode'];
minVersionCode = json['minVersionCode'];
minBetaVersionCode = json['minBetaVersionCode'];
2023-10-12 21:00:58 +08:00
p4kDownloadUrl = json['p4kDownloadUrl'];
2023-10-09 09:32:07 +08:00
}
String? lastVersion;
num? lastVersionCode;
String? lastBetaVersion;
num? lastBetaVersionCode;
num? minVersionCode;
num? minBetaVersionCode;
2023-10-12 21:00:58 +08:00
String? p4kDownloadUrl;
2023-10-09 09:32:07 +08:00
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['lastVersion'] = lastVersion;
map['lastVersionCode'] = lastVersionCode;
map['lastBetaVersion'] = lastBetaVersion;
map['lastBetaVersionCode'] = lastBetaVersionCode;
map['minVersionCode'] = minVersionCode;
map['minBetaVersionCode'] = minBetaVersionCode;
2023-10-12 21:00:58 +08:00
map['p4kDownloadUrl'] = p4kDownloadUrl;
2023-10-09 09:32:07 +08:00
return map;
}
}