Origin.fromXml constructor
Origin.fromXml(
- XmlElement elem
Implementation
factory Origin.fromXml(_s.XmlElement elem) {
return Origin(
domainName: _s.extractXmlStringValue(elem, 'DomainName')!,
id: _s.extractXmlStringValue(elem, 'Id')!,
connectionAttempts: _s.extractXmlIntValue(elem, 'ConnectionAttempts'),
connectionTimeout: _s.extractXmlIntValue(elem, 'ConnectionTimeout'),
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)),
);
}