OriginRequestPolicy.fromXml constructor

OriginRequestPolicy.fromXml(
  1. XmlElement elem
)

Implementation

factory OriginRequestPolicy.fromXml(_s.XmlElement elem) {
  return OriginRequestPolicy(
    id: _s.extractXmlStringValue(elem, 'Id')!,
    lastModifiedTime: _s.extractXmlDateTimeValue(elem, 'LastModifiedTime')!,
    originRequestPolicyConfig: OriginRequestPolicyConfig.fromXml(
        _s.extractXmlChild(elem, 'OriginRequestPolicyConfig')!),
  );
}