dreampad/lib/app/models/app_update_model.dart
2023-11-28 10:45:09 +08:00

22 lines
412 B
Dart

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;
}
}