toXml method
XmlElement
toXml(
- String elemName, {
- List<XmlAttribute>? attributes,
})
Implementation
_s.XmlElement toXml(String elemName, {List<_s.XmlAttribute>? attributes}) {
final callerReference = this.callerReference;
final name = this.name;
final delegationSetId = this.delegationSetId;
final hostedZoneConfig = this.hostedZoneConfig;
final vpc = this.vpc;
final $children = <_s.XmlNode>[
_s.encodeXmlStringValue('Name', name),
if (vpc != null) vpc.toXml('VPC'),
_s.encodeXmlStringValue('CallerReference', callerReference),
if (hostedZoneConfig != null) hostedZoneConfig.toXml('HostedZoneConfig'),
if (delegationSetId != null)
_s.encodeXmlStringValue('DelegationSetId', delegationSetId),
];
final $attributes = <_s.XmlAttribute>[
...?attributes,
];
return _s.XmlElement(
_s.XmlName(elemName),
$attributes,
$children,
);
}