ValidationMessage.fromXml constructor

ValidationMessage.fromXml(
  1. XmlElement elem
)

Implementation

factory ValidationMessage.fromXml(_s.XmlElement elem) {
  return ValidationMessage(
    message: _s.extractXmlStringValue(elem, 'Message'),
    namespace: _s.extractXmlStringValue(elem, 'Namespace'),
    optionName: _s.extractXmlStringValue(elem, 'OptionName'),
    severity:
        _s.extractXmlStringValue(elem, 'Severity')?.toValidationSeverity(),
  );
}