toInstanceSnapshotState method

InstanceSnapshotState toInstanceSnapshotState()

Implementation

InstanceSnapshotState toInstanceSnapshotState() {
  switch (this) {
    case 'pending':
      return InstanceSnapshotState.pending;
    case 'error':
      return InstanceSnapshotState.error;
    case 'available':
      return InstanceSnapshotState.available;
  }
  throw Exception('$this is not known in enum InstanceSnapshotState');
}