buildXml method

  1. @override
void buildXml(
  1. XmlBuilder builder, {
  2. String tag = 'ProfileToken',
  3. String? namespace,
})
override

Implementation

@override
void buildXml(
  XmlBuilder builder, {
  String tag = 'ProfileToken',
  String? namespace,
}) =>
    builder.element(tag, nest: () {
      builder.text(token);

      if (namespace != null) {
        builder.namespace(namespace);
      }
    });