ImagePipeline.fromJson constructor
ImagePipeline.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ImagePipeline.fromJson(Map<String, dynamic> json) {
return ImagePipeline(
arn: json['arn'] as String?,
containerRecipeArn: json['containerRecipeArn'] as String?,
dateCreated: json['dateCreated'] as String?,
dateLastRun: json['dateLastRun'] as String?,
dateNextRun: json['dateNextRun'] as String?,
dateUpdated: json['dateUpdated'] as String?,
description: json['description'] as String?,
distributionConfigurationArn:
json['distributionConfigurationArn'] as String?,
enhancedImageMetadataEnabled:
json['enhancedImageMetadataEnabled'] as bool?,
imageRecipeArn: json['imageRecipeArn'] as String?,
imageTestsConfiguration: json['imageTestsConfiguration'] != null
? ImageTestsConfiguration.fromJson(
json['imageTestsConfiguration'] as Map<String, dynamic>)
: null,
infrastructureConfigurationArn:
json['infrastructureConfigurationArn'] as String?,
name: json['name'] as String?,
platform: (json['platform'] as String?)?.toPlatform(),
schedule: json['schedule'] != null
? Schedule.fromJson(json['schedule'] as Map<String, dynamic>)
: null,
status: (json['status'] as String?)?.toPipelineStatus(),
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}