I made a pub package that transforms xml to objects with objectbuilders. Maybe that is what you are searching for! https://github.com/jorishermans/xmlstream
You always need to tell the system how you want to transform your object to xml to the dart object.