PolicyTypeDescription.fromXml constructor

PolicyTypeDescription.fromXml(
  1. XmlElement elem
)

Implementation

factory PolicyTypeDescription.fromXml(_s.XmlElement elem) {
  return PolicyTypeDescription(
    description: _s.extractXmlStringValue(elem, 'Description'),
    policyAttributeTypeDescriptions: _s
        .extractXmlChild(elem, 'PolicyAttributeTypeDescriptions')
        ?.let((elem) => elem
            .findElements('member')
            .map((c) => PolicyAttributeTypeDescription.fromXml(c))
            .toList()),
    policyTypeName: _s.extractXmlStringValue(elem, 'PolicyTypeName'),
  );
}