You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
class AppVersion {
|
|
final String? id;
|
|
final String? version;
|
|
final int? versionCode;
|
|
final String? url;
|
|
final String? title;
|
|
final String? description;
|
|
final int? operatingSystem;
|
|
final bool? isForcingUpdate;
|
|
|
|
AppVersion({
|
|
this.id,
|
|
this.version,
|
|
this.versionCode,
|
|
this.url,
|
|
this.title,
|
|
this.description,
|
|
this.operatingSystem,
|
|
this.isForcingUpdate,
|
|
});
|
|
|
|
factory AppVersion.fromJson(Map<String, dynamic> json) {
|
|
return AppVersion(
|
|
id: json['id'] as String?,
|
|
version: json['version'] as String?,
|
|
versionCode: json['versionCode'] as int?,
|
|
url: json['url'] as String?,
|
|
title: json['title'] as String?,
|
|
description: json['description'] as String?,
|
|
operatingSystem: json['operatingSystem'] as int?,
|
|
isForcingUpdate: json['isForcingUpdate'] as bool?,
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
return {
|
|
'id': id,
|
|
'version': version,
|
|
'versionCode': versionCode,
|
|
'url': url,
|
|
'title': title,
|
|
'description': description,
|
|
'operatingSystem': operatingSystem,
|
|
'isForcingUpdate': isForcingUpdate,
|
|
};
|
|
}
|
|
}
|