toReplicationRunState method

ReplicationRunState toReplicationRunState()

Implementation

ReplicationRunState toReplicationRunState() {
  switch (this) {
    case 'PENDING':
      return ReplicationRunState.pending;
    case 'MISSED':
      return ReplicationRunState.missed;
    case 'ACTIVE':
      return ReplicationRunState.active;
    case 'FAILED':
      return ReplicationRunState.failed;
    case 'COMPLETED':
      return ReplicationRunState.completed;
    case 'DELETING':
      return ReplicationRunState.deleting;
    case 'DELETED':
      return ReplicationRunState.deleted;
  }
  throw Exception('$this is not known in enum ReplicationRunState');
}