toInboundConnectionStatusCode method
Implementation
InboundConnectionStatusCode toInboundConnectionStatusCode() {
switch (this) {
case 'PENDING_ACCEPTANCE':
return InboundConnectionStatusCode.pendingAcceptance;
case 'APPROVED':
return InboundConnectionStatusCode.approved;
case 'PROVISIONING':
return InboundConnectionStatusCode.provisioning;
case 'ACTIVE':
return InboundConnectionStatusCode.active;
case 'REJECTING':
return InboundConnectionStatusCode.rejecting;
case 'REJECTED':
return InboundConnectionStatusCode.rejected;
case 'DELETING':
return InboundConnectionStatusCode.deleting;
case 'DELETED':
return InboundConnectionStatusCode.deleted;
}
throw Exception('$this is not known in enum InboundConnectionStatusCode');
}