toXml method

XmlDocument toXml()

Implementation

XmlDocument toXml() {
  final XmlBuilder builder = XmlBuilder();
  builder.element('AccelerateConfiguration', nest: () {
    if (status != null) {
      builder.element('Status', nest: status);
    }
    if (type != null) {
      builder.element('Type', nest: type);
    }
  });
  return builder.buildDocument();
}