toImageBuilderStateChangeReasonCode method
Implementation
ImageBuilderStateChangeReasonCode toImageBuilderStateChangeReasonCode() {
switch (this) {
case 'INTERNAL_ERROR':
return ImageBuilderStateChangeReasonCode.internalError;
case 'IMAGE_UNAVAILABLE':
return ImageBuilderStateChangeReasonCode.imageUnavailable;
}
throw Exception(
'$this is not known in enum ImageBuilderStateChangeReasonCode');
}