toImageStatus method
Implementation
ImageStatus toImageStatus() {
switch (this) {
case 'PENDING':
return ImageStatus.pending;
case 'CREATING':
return ImageStatus.creating;
case 'BUILDING':
return ImageStatus.building;
case 'TESTING':
return ImageStatus.testing;
case 'DISTRIBUTING':
return ImageStatus.distributing;
case 'INTEGRATING':
return ImageStatus.integrating;
case 'AVAILABLE':
return ImageStatus.available;
case 'CANCELLED':
return ImageStatus.cancelled;
case 'FAILED':
return ImageStatus.failed;
case 'DEPRECATED':
return ImageStatus.deprecated;
case 'DELETED':
return ImageStatus.deleted;
}
throw Exception('$this is not known in enum ImageStatus');
}