AppVersion.fromJson constructor
Deserializes AppVersion from a JSON map.
Implementation
factory AppVersion.fromJson(Map<String, dynamic> json) {
return AppVersion(
id: json['id'] as String? ?? '',
appId: json['appId'] as String? ?? '',
label: json['label'] as String? ?? '',
position: (json['position'] as num?)?.toInt() ?? 0,
released: json['released'] as bool? ?? false,
releasedAt: json['releasedAt'] as String?,
description: json['description'] as String?,
createdAt: json['createdAt'] as String? ?? '',
updatedAt: json['updatedAt'] as String? ?? '',
);
}