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