22 lines
412 B
Dart
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;
|
||
|
}
|
||
|
}
|