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