writeValueAsXmlMap abstract method
Serializes a Dart object into an XML Map<String, dynamic> representation.
This method traverses all serializable fields of value and produces
a nested map structure compatible with XML generation.
Example
final map = mapper.writeValueAsXmlMap(user);
print(map['user']['id']); // 1
Implementation
Map<String, dynamic> writeValueAsXmlMap(Object? value);