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}) {
  builder.element('RemovePreset', nest: () {
    builder.namespace(Xmlns.tptz);

    ReferenceToken(profileToken).buildXml(builder);

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

  return builder.buildFragment();
}