toAppReplicationStatus method

AppReplicationStatus toAppReplicationStatus()

Implementation

AppReplicationStatus toAppReplicationStatus() {
  switch (this) {
    case 'READY_FOR_CONFIGURATION':
      return AppReplicationStatus.readyForConfiguration;
    case 'CONFIGURATION_IN_PROGRESS':
      return AppReplicationStatus.configurationInProgress;
    case 'CONFIGURATION_INVALID':
      return AppReplicationStatus.configurationInvalid;
    case 'READY_FOR_REPLICATION':
      return AppReplicationStatus.readyForReplication;
    case 'VALIDATION_IN_PROGRESS':
      return AppReplicationStatus.validationInProgress;
    case 'REPLICATION_PENDING':
      return AppReplicationStatus.replicationPending;
    case 'REPLICATION_IN_PROGRESS':
      return AppReplicationStatus.replicationInProgress;
    case 'REPLICATED':
      return AppReplicationStatus.replicated;
    case 'PARTIALLY_REPLICATED':
      return AppReplicationStatus.partiallyReplicated;
    case 'DELTA_REPLICATION_IN_PROGRESS':
      return AppReplicationStatus.deltaReplicationInProgress;
    case 'DELTA_REPLICATED':
      return AppReplicationStatus.deltaReplicated;
    case 'DELTA_REPLICATION_FAILED':
      return AppReplicationStatus.deltaReplicationFailed;
    case 'REPLICATION_FAILED':
      return AppReplicationStatus.replicationFailed;
    case 'REPLICATION_STOPPING':
      return AppReplicationStatus.replicationStopping;
    case 'REPLICATION_STOP_FAILED':
      return AppReplicationStatus.replicationStopFailed;
    case 'REPLICATION_STOPPED':
      return AppReplicationStatus.replicationStopped;
  }
  throw Exception('$this is not known in enum AppReplicationStatus');
}