Policies.fromXml constructor

Policies.fromXml(
  1. XmlElement elem
)

Implementation

factory Policies.fromXml(_s.XmlElement elem) {
  return Policies(
    appCookieStickinessPolicies: _s
        .extractXmlChild(elem, 'AppCookieStickinessPolicies')
        ?.let((elem) => elem
            .findElements('member')
            .map((c) => AppCookieStickinessPolicy.fromXml(c))
            .toList()),
    lBCookieStickinessPolicies: _s
        .extractXmlChild(elem, 'LBCookieStickinessPolicies')
        ?.let((elem) => elem
            .findElements('member')
            .map((c) => LBCookieStickinessPolicy.fromXml(c))
            .toList()),
    otherPolicies: _s
        .extractXmlChild(elem, 'OtherPolicies')
        ?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
  );
}