dreampad/lib/app/models/app_update_model.dart

22 lines
412 B
Dart
Raw Normal View History

2023-11-28 10:44:58 +08:00
class AppUpdate {
String? version;
String? downloadUrl;
AppUpdate({
this.version,
this.downloadUrl,
});
AppUpdate.fromJson(Map<String, dynamic> json) {
version = json['version'];
downloadUrl = json['downloadUrl'];
}
Map<String, dynamic> toJson() {
final data = <String, dynamic>{};
data['version'] = version;
data['downloadUrl'] = downloadUrl;
return data;
}
}