toSnapshotStatus method
Implementation
SnapshotStatus toSnapshotStatus() {
switch (this) {
case 'CREATING':
return SnapshotStatus.creating;
case 'READY':
return SnapshotStatus.ready;
case 'DELETING':
return SnapshotStatus.deleting;
case 'FAILED':
return SnapshotStatus.failed;
}
throw Exception('$this is not known in enum SnapshotStatus');
}