LayerVersionsListItem.fromJson constructor
LayerVersionsListItem.fromJson(
- Map<String, dynamic> json
)
Implementation
factory LayerVersionsListItem.fromJson(Map<String, dynamic> json) {
return LayerVersionsListItem(
compatibleRuntimes: (json['CompatibleRuntimes'] as List?)
?.whereNotNull()
.map((e) => (e as String).toRuntime())
.toList(),
createdDate: json['CreatedDate'] as String?,
description: json['Description'] as String?,
layerVersionArn: json['LayerVersionArn'] as String?,
licenseInfo: json['LicenseInfo'] as String?,
version: json['Version'] as int?,
);
}