toDirectConnectGatewayAttachmentState method

DirectConnectGatewayAttachmentState toDirectConnectGatewayAttachmentState()

Implementation

DirectConnectGatewayAttachmentState toDirectConnectGatewayAttachmentState() {
  switch (this) {
    case 'attaching':
      return DirectConnectGatewayAttachmentState.attaching;
    case 'attached':
      return DirectConnectGatewayAttachmentState.attached;
    case 'detaching':
      return DirectConnectGatewayAttachmentState.detaching;
    case 'detached':
      return DirectConnectGatewayAttachmentState.detached;
  }
  throw Exception(
      '$this is not known in enum DirectConnectGatewayAttachmentState');
}