toImageVersionStatus method

ImageVersionStatus toImageVersionStatus()

Implementation

ImageVersionStatus toImageVersionStatus() {
  switch (this) {
    case 'CREATING':
      return ImageVersionStatus.creating;
    case 'CREATED':
      return ImageVersionStatus.created;
    case 'CREATE_FAILED':
      return ImageVersionStatus.createFailed;
    case 'DELETING':
      return ImageVersionStatus.deleting;
    case 'DELETE_FAILED':
      return ImageVersionStatus.deleteFailed;
  }
  throw Exception('$this is not known in enum ImageVersionStatus');
}