CookiePreference.fromXml constructor

CookiePreference.fromXml(
  1. XmlElement elem
)

Implementation

factory CookiePreference.fromXml(_s.XmlElement elem) {
  return CookiePreference(
    forward: _s.extractXmlStringValue(elem, 'Forward')!.toItemSelection(),
    whitelistedNames: _s
        .extractXmlChild(elem, 'WhitelistedNames')
        ?.let((e) => CookieNames.fromXml(e)),
  );
}