toInboundCrossClusterSearchConnectionStatusCode method

InboundCrossClusterSearchConnectionStatusCode toInboundCrossClusterSearchConnectionStatusCode()

Implementation

InboundCrossClusterSearchConnectionStatusCode
    toInboundCrossClusterSearchConnectionStatusCode() {
  switch (this) {
    case 'PENDING_ACCEPTANCE':
      return InboundCrossClusterSearchConnectionStatusCode.pendingAcceptance;
    case 'APPROVED':
      return InboundCrossClusterSearchConnectionStatusCode.approved;
    case 'REJECTING':
      return InboundCrossClusterSearchConnectionStatusCode.rejecting;
    case 'REJECTED':
      return InboundCrossClusterSearchConnectionStatusCode.rejected;
    case 'DELETING':
      return InboundCrossClusterSearchConnectionStatusCode.deleting;
    case 'DELETED':
      return InboundCrossClusterSearchConnectionStatusCode.deleted;
  }
  throw Exception(
      '$this is not known in enum InboundCrossClusterSearchConnectionStatusCode');
}