There is any way in Dart to parse XML and obtain an object?
For example if I have this XML:
<person>
<name>John</name>
<surname>Smith</surname>
</person>
I want to bind it to this object:
class Person {
String name;
String surname;
...
}
With a snippet like this:
Person person = parse(xml);