toXml method
XmlNode
toXml()
Implementation
XmlNode toXml() {
final builder = XmlBuilder();
builder.element(
'StorageClassAnalysisDataExport',
nest: () {
if (destination != null) {
builder.element(
'Destination',
nest: (destination!.toXml() as XmlDocument).rootElement.children,
);
}
if (outputSchemaVersion != null) {
builder.element('OutputSchemaVersion', nest: outputSchemaVersion);
}
},
);
return builder.buildDocument();
}