toXml method
XmlNode
toXml()
Implementation
XmlNode toXml() {
final builder = XmlBuilder();
builder.element(
'ReplicationTime',
nest: () {
if (status != null) {
builder.element('Status', nest: status);
}
if (time != null) {
builder.element(
'Time',
nest: (time!.toXml() as XmlDocument).rootElement.children,
);
}
},
);
return builder.buildDocument();
}