toSnapshotStatus method
Implementation
SnapshotStatus toSnapshotStatus() {
switch (this) {
case 'Creating':
return SnapshotStatus.creating;
case 'Completed':
return SnapshotStatus.completed;
case 'Failed':
return SnapshotStatus.failed;
}
throw Exception('$this is not known in enum SnapshotStatus');
}