raise_exception method
void
raise_exception()
Implementation
void raise_exception() {
final rootTagName = this.resp_root.rootElement.name;
if ('$rootTagName' == "Error") {
throw OssException(this.resp_root.children[2].toXmlString());
} else {
final root = this.resp_root.children[2];
response_dict = <String, String>{};
root.children.forEach((node) {
if (node.nodeType == XmlNodeType.ELEMENT) {
final tag_name = (node as XmlElement).name.toString();
final value = node.value ?? '';
response_dict.addAll({tag_name: value});
}
});
}
}