toXml method

XmlElement toXml(
  1. String elemName, {
  2. List<XmlAttribute>? attributes,
})

Implementation

_s.XmlElement toXml(String elemName, {List<_s.XmlAttribute>? attributes}) {
  final fieldPatterns = this.fieldPatterns;
  final providerId = this.providerId;
  final publicKeyId = this.publicKeyId;
  final $children = <_s.XmlNode>[
    _s.encodeXmlStringValue('PublicKeyId', publicKeyId),
    _s.encodeXmlStringValue('ProviderId', providerId),
    fieldPatterns.toXml('FieldPatterns'),
  ];
  final $attributes = <_s.XmlAttribute>[
    ...?attributes,
  ];
  return _s.XmlElement(
    _s.XmlName(elemName),
    $attributes,
    $children,
  );
}