DistributionSummary.fromXml constructor
DistributionSummary.fromXml(
- XmlElement elem
Implementation
factory DistributionSummary.fromXml(_s.XmlElement elem) {
return DistributionSummary(
arn: _s.extractXmlStringValue(elem, 'ARN')!,
aliases: Aliases.fromXml(_s.extractXmlChild(elem, 'Aliases')!),
cacheBehaviors:
CacheBehaviors.fromXml(_s.extractXmlChild(elem, 'CacheBehaviors')!),
comment: _s.extractXmlStringValue(elem, 'Comment')!,
customErrorResponses: CustomErrorResponses.fromXml(
_s.extractXmlChild(elem, 'CustomErrorResponses')!),
defaultCacheBehavior: DefaultCacheBehavior.fromXml(
_s.extractXmlChild(elem, 'DefaultCacheBehavior')!),
domainName: _s.extractXmlStringValue(elem, 'DomainName')!,
enabled: _s.extractXmlBoolValue(elem, 'Enabled')!,
httpVersion:
_s.extractXmlStringValue(elem, 'HttpVersion')!.toHttpVersion(),
id: _s.extractXmlStringValue(elem, 'Id')!,
isIPV6Enabled: _s.extractXmlBoolValue(elem, 'IsIPV6Enabled')!,
lastModifiedTime: _s.extractXmlDateTimeValue(elem, 'LastModifiedTime')!,
origins: Origins.fromXml(_s.extractXmlChild(elem, 'Origins')!),
priceClass: _s.extractXmlStringValue(elem, 'PriceClass')!.toPriceClass(),
restrictions:
Restrictions.fromXml(_s.extractXmlChild(elem, 'Restrictions')!),
status: _s.extractXmlStringValue(elem, 'Status')!,
viewerCertificate: ViewerCertificate.fromXml(
_s.extractXmlChild(elem, 'ViewerCertificate')!),
webACLId: _s.extractXmlStringValue(elem, 'WebACLId')!,
originGroups: _s
.extractXmlChild(elem, 'OriginGroups')
?.let((e) => OriginGroups.fromXml(e)),
);
}