XML to JSON conversion for Dart