toGData method

String toGData()

GData transformer

Implementation

String toGData() {
  if (_result == null) {
    throw Xml2JsonException('toGData - no parse result');
  }

  String json;
  final gDataTransformer = _Xml2JsonGData();
  try {
    json = gDataTransformer.transform(_result);
  } on Exception catch (e) {
    throw Xml2JsonException('toGData error => ${e.toString()}');
  }

  return json;
}