createMixin property
If true
(not the default) then a mixin will be created that contains the serialization methods.
@XmlRootElement(name: 'example')
@XmlSerializable(createMixin: true)
class Example with _$ExampleXmlSerializableMixin {
@XmlText()
String? text;
Example({this.text});
factory Example.fromXmlElement(XmlElement element) => _$ExampleFromXmlElement(element);
}
Implementation
final bool? createMixin;