ComponentVersion.fromJson constructor
ComponentVersion.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ComponentVersion.fromJson(Map<String, dynamic> json) {
return ComponentVersion(
arn: json['arn'] as String?,
dateCreated: json['dateCreated'] as String?,
description: json['description'] as String?,
name: json['name'] as String?,
owner: json['owner'] as String?,
platform: (json['platform'] as String?)?.toPlatform(),
supportedOsVersions: (json['supportedOsVersions'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
type: (json['type'] as String?)?.toComponentType(),
version: json['version'] as String?,
);
}