AppStoreVersion.fromMap constructor Null safety
- Map map
A version of an app in the App Store Connect API.
Implementation
factory AppStoreVersion.fromMap(Map<dynamic, dynamic> map) {
map = map.cast<String, dynamic>();
return AppStoreVersion(
type: map['type'] as String?,
id: map['id'] as String?,
attributes: map['attributes'] == null
? null
: AppStoreVersionAttributes.fromMap(map['attributes'] as Map? ?? {}),
);
}