removePresetTour static method

XmlDocumentFragment removePresetTour(
  1. String profileToken, {
  2. required PresetTour presetTour,
})

XML for the removePresetTour, requires a profileToken and presetTour

Implementation

static XmlDocumentFragment removePresetTour(String profileToken,
    {required PresetTour presetTour}) {
  builder.element('RemovePresetTour', nest: () {
    builder.namespace(Xmlns.tptz);

    ReferenceToken(profileToken).buildXml(builder);

    presetTour.referenceToken.buildXml(
      builder,
      tag: 'PresetTourToken',
    );
  });

  return builder.buildFragment();
}