buildXml method

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

Implementation

@override
void buildXml(XmlBuilder builder, {String tag = 'User', String? namespace}) =>
    builder.element(
      tag,
      namespace: namespace,
      nest: () {
        username.buildXml(builder, tag: 'Username');
        password?.buildXml(builder, tag: 'Password');
        userLevel.code.buildXml(builder, tag: 'UserLevel');
      },
    );