toImageStatus method
Implementation
ImageStatus toImageStatus() {
switch (this) {
case 'CREATING':
return ImageStatus.creating;
case 'CREATED':
return ImageStatus.created;
case 'CREATE_FAILED':
return ImageStatus.createFailed;
case 'UPDATING':
return ImageStatus.updating;
case 'UPDATE_FAILED':
return ImageStatus.updateFailed;
case 'DELETING':
return ImageStatus.deleting;
case 'DELETE_FAILED':
return ImageStatus.deleteFailed;
}
throw Exception('$this is not known in enum ImageStatus');
}