code: public function toNode(DOMDocument $document = null)
      {
          if (null === $document) {
              $document = new DOMDocument();
          }
  
          $node = $document->createElement('RateInformation');
  
          if ($this->getNegotiatedRatesIndicator()) {
              $node->appendChild($document->createElement('NegotiatedRatesIndicator'));
          }
  
          if ($this->getRateChartIndicator()) {
              $node->appendChild($document->createElement('RateChartIndicator'));
          }
  
          return $node;
      }
docs: @param null|DOMDocument $document
  
  @return DOMElement