toReplicaStatus method

ReplicaStatus toReplicaStatus()

Implementation

ReplicaStatus toReplicaStatus() {
  switch (this) {
    case 'CREATING':
      return ReplicaStatus.creating;
    case 'CREATION_FAILED':
      return ReplicaStatus.creationFailed;
    case 'UPDATING':
      return ReplicaStatus.updating;
    case 'DELETING':
      return ReplicaStatus.deleting;
    case 'ACTIVE':
      return ReplicaStatus.active;
    case 'REGION_DISABLED':
      return ReplicaStatus.regionDisabled;
    case 'INACCESSIBLE_ENCRYPTION_CREDENTIALS':
      return ReplicaStatus.inaccessibleEncryptionCredentials;
  }
  throw Exception('$this is not known in enum ReplicaStatus');
}