toParkerWithAttrs method

String toParkerWithAttrs({
  1. List<String>? array,
})

Parker with attributes transformer

Implementation

String toParkerWithAttrs({List<String>? array}) {
  if (_result == null) {
    throw Xml2JsonException('toParkerWithAttrs - no parse result');
  }

  String json;
  final parkerTransformer = _Xml2JsonParkerWithAttrs();
  try {
    json = parkerTransformer.transform(_result, array: array);
  } on Exception catch (e) {
    throw Xml2JsonException('toParkerWithAttrs error => ${e.toString()}');
  }

  return json;
}