InterfaceLevelResponse.fromXML constructor

InterfaceLevelResponse.fromXML(
  1. String xmlSTR
)

Implementation

factory InterfaceLevelResponse.fromXML(String xmlSTR) {
  final document = XmlDocument.parse(xmlSTR);
  document.findElements("messageName");

  String result = document.rootElement.childElements.first.attributes
      .firstWhere((p0) => p0.name.toString() == "result")
      .value;

  return InterfaceLevelResponse(
    result: result,
    // xsi: xsi,
  );
}