GetLifecyclePolicyPreviewResponse.fromJson constructor
GetLifecyclePolicyPreviewResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetLifecyclePolicyPreviewResponse.fromJson(
Map<String, dynamic> json) {
return GetLifecyclePolicyPreviewResponse(
lifecyclePolicyText: json['lifecyclePolicyText'] as String?,
nextToken: json['nextToken'] as String?,
previewResults: (json['previewResults'] as List?)
?.whereNotNull()
.map((e) =>
LifecyclePolicyPreviewResult.fromJson(e as Map<String, dynamic>))
.toList(),
registryId: json['registryId'] as String?,
repositoryName: json['repositoryName'] as String?,
status: (json['status'] as String?)?.toLifecyclePolicyPreviewStatus(),
summary: json['summary'] != null
? LifecyclePolicyPreviewSummary.fromJson(
json['summary'] as Map<String, dynamic>)
: null,
);
}