toInstanceStatus method

InstanceStatus toInstanceStatus()

Implementation

InstanceStatus toInstanceStatus() {
  switch (this) {
    case 'PENDING':
      return InstanceStatus.pending;
    case 'ACTIVE':
      return InstanceStatus.active;
    case 'TERMINATING':
      return InstanceStatus.terminating;
  }
  throw Exception('$this is not known in enum InstanceStatus');
}