news_getx/lib/data/model/app.dart

61 lines
1.3 KiB
Dart

/*
app 升级
*/
class AppUpdateRequest {
String? device;
String? channel;
String? architecture;
String? model;
AppUpdateRequest({
this.device,
this.channel,
this.architecture,
this.model,
});
factory AppUpdateRequest.fromJson(Map<String, dynamic> json) =>
AppUpdateRequest(
device: json["device"],
channel: json["channel"],
architecture: json["architecture"],
model: json["model"],
);
Map<String, dynamic> toJson() => {
"device": device,
"channel": channel,
"architecture": architecture,
"model": model,
};
}
class AppUpdateResponse {
String? shopUrl;
String? fileUrl;
String? latestVersion;
String? latestDescription;
AppUpdateResponse({
this.shopUrl,
this.fileUrl,
this.latestVersion,
this.latestDescription,
});
factory AppUpdateResponse.fromJson(Map<String, dynamic> json) =>
AppUpdateResponse(
shopUrl: json["shopUrl"],
fileUrl: json["fileUrl"],
latestVersion: json["latestVersion"],
latestDescription: json["latestDescription"],
);
Map<String, dynamic> toJson() => {
"shopUrl": shopUrl,
"fileUrl": fileUrl,
"latestVersion": latestVersion,
"latestDescription": latestDescription,
};
}