toImageStateChangeReasonCode method

ImageStateChangeReasonCode toImageStateChangeReasonCode()

Implementation

ImageStateChangeReasonCode toImageStateChangeReasonCode() {
  switch (this) {
    case 'INTERNAL_ERROR':
      return ImageStateChangeReasonCode.internalError;
    case 'IMAGE_BUILDER_NOT_AVAILABLE':
      return ImageStateChangeReasonCode.imageBuilderNotAvailable;
    case 'IMAGE_COPY_FAILURE':
      return ImageStateChangeReasonCode.imageCopyFailure;
  }
  throw Exception('$this is not known in enum ImageStateChangeReasonCode');
}