toReplicationStatus method

ReplicationStatus toReplicationStatus()

Implementation

ReplicationStatus toReplicationStatus() {
  switch (this) {
    case 'COMPLETE':
      return ReplicationStatus.complete;
    case 'PENDING':
      return ReplicationStatus.pending;
    case 'FAILED':
      return ReplicationStatus.failed;
    case 'REPLICA':
      return ReplicationStatus.replica;
  }
  throw Exception('$this is not known in enum ReplicationStatus');
}