toAutoSnapshotStatus method

AutoSnapshotStatus toAutoSnapshotStatus()

Implementation

AutoSnapshotStatus toAutoSnapshotStatus() {
  switch (this) {
    case 'Success':
      return AutoSnapshotStatus.success;
    case 'Failed':
      return AutoSnapshotStatus.failed;
    case 'InProgress':
      return AutoSnapshotStatus.inProgress;
    case 'NotFound':
      return AutoSnapshotStatus.notFound;
  }
  throw Exception('$this is not known in enum AutoSnapshotStatus');
}