You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And ran the generator. It generated the character.g.dart class but it had a compile error:
The method 'buildXmlChildren' isn't defined for the type 'Character'. Try correcting the name to the name of an existing method, or defining a method named 'buildXmlChildren'.
It would be nice to handle the simplest use cases to allow us to write even less boilerplate code. Judging from your readme example, i would still need to implement a few more methods for it to compile.
The text was updated successfully, but these errors were encountered:
Hi @atn832, thank you very much for your issue. It looks like your class doesn't have any fields and does not have the required methods to support XML serialization using this package. You could reduce the number of methods that you have to implement in your class by using the create mixin functionality provided by the XmlSerializable annotation.
I tried writing the simplest class:
And ran the generator. It generated the character.g.dart class but it had a compile error:
It would be nice to handle the simplest use cases to allow us to write even less boilerplate code. Judging from your readme example, i would still need to implement a few more methods for it to compile.
The text was updated successfully, but these errors were encountered: