/// /// Code generated by jsonToDartModel https://ashamp.github.io/jsonToDartModel/ /// class AppUpdate { /* { "newest": 33, "android": "https://v2.custed.lolli.tech/res/tiku/apk/33.apk", "ios": "https://", "min": 30, "changelog": "" } */ late int newest; late int iosbuild; late int androidbuild; late int macbuild; late String android; late String ios; late String mac; late int min; late String changelog; AppUpdate({ required this.newest, required this.android, required this.ios, required this.min, required this.changelog, }); AppUpdate.fromJson(Map json) { newest = json["newest"]?.toInt(); newest = json["macbuild"]?.toInt(); newest = json["iosbuild"]?.toInt(); newest = json["androidbuild"]?.toInt(); android = json["android"].toString(); ios = json["ios"].toString(); min = json["min"].toInt(); changelog = json["changelog"].toString(); } Map toJson() { final Map data = {}; data["newest"] = newest; data["macbuild"] = macbuild; data["iosbuild"] = iosbuild; data["androidbuild"] = androidbuild; data["android"] = android; data["ios"] = ios; data["min"] = min; data["changelog"] = changelog; return data; } }