ImageVersion.fromJson constructor

ImageVersion.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ImageVersion.fromJson(Map<String, dynamic> json) {
  return ImageVersion(
    creationTime:
        nonNullableTimeStampFromJson(json['CreationTime'] as Object),
    imageArn: json['ImageArn'] as String,
    imageVersionArn: json['ImageVersionArn'] as String,
    imageVersionStatus:
        (json['ImageVersionStatus'] as String).toImageVersionStatus(),
    lastModifiedTime:
        nonNullableTimeStampFromJson(json['LastModifiedTime'] as Object),
    version: json['Version'] as int,
    failureReason: json['FailureReason'] as String?,
  );
}