Origin.fromXml constructor

Origin.fromXml(
  1. XmlElement elem
)

Implementation

factory Origin.fromXml(_s.XmlElement elem) {
  return Origin(
    domainName: _s.extractXmlStringValue(elem, 'DomainName'),
    id: _s.extractXmlStringValue(elem, 'Id'),
    customHeaders: _s
        .extractXmlChild(elem, 'CustomHeaders')
        ?.let((e) => CustomHeaders.fromXml(e)),
    customOriginConfig: _s
        .extractXmlChild(elem, 'CustomOriginConfig')
        ?.let((e) => CustomOriginConfig.fromXml(e)),
    originPath: _s.extractXmlStringValue(elem, 'OriginPath'),
    s3OriginConfig: _s
        .extractXmlChild(elem, 'S3OriginConfig')
        ?.let((e) => S3OriginConfig.fromXml(e)),
  );
}