removePreset static method

XmlDocumentFragment removePreset(
  1. String profileToken, {
  2. required Preset preset,
})

XML for the removePreset, requires a profileToken and Preset

Implementation

static XmlDocumentFragment removePreset(String profileToken,
    {required Preset preset}) {
  Transport.builder.element('RemovePreset', nest: () {
    Transport.builder.namespace(Xmlns.tptz);

    ReferenceToken(profileToken).buildXml(Transport.builder);

    preset.referenceToken.buildXml(Transport.builder, tag: 'PresetToken');
  });

  return Transport.builder.buildFragment();
}