toDirectConnectGatewayState method

DirectConnectGatewayState toDirectConnectGatewayState()

Implementation

DirectConnectGatewayState toDirectConnectGatewayState() {
  switch (this) {
    case 'pending':
      return DirectConnectGatewayState.pending;
    case 'available':
      return DirectConnectGatewayState.available;
    case 'deleting':
      return DirectConnectGatewayState.deleting;
    case 'deleted':
      return DirectConnectGatewayState.deleted;
  }
  throw Exception('$this is not known in enum DirectConnectGatewayState');
}