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