toParker method

String toParker()

Parker transformer

Implementation

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

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

  return json;
}