toReplicationJobState method

ReplicationJobState toReplicationJobState()

Implementation

ReplicationJobState toReplicationJobState() {
  switch (this) {
    case 'PENDING':
      return ReplicationJobState.pending;
    case 'ACTIVE':
      return ReplicationJobState.active;
    case 'FAILED':
      return ReplicationJobState.failed;
    case 'DELETING':
      return ReplicationJobState.deleting;
    case 'DELETED':
      return ReplicationJobState.deleted;
    case 'COMPLETED':
      return ReplicationJobState.completed;
    case 'PAUSED_ON_FAILURE':
      return ReplicationJobState.pausedOnFailure;
    case 'FAILING':
      return ReplicationJobState.failing;
  }
  throw Exception('$this is not known in enum ReplicationJobState');
}