Distribution.fromXml constructor
Distribution.fromXml(
- XmlElement elem
Implementation
factory Distribution.fromXml(_s.XmlElement elem) {
return Distribution(
arn: _s.extractXmlStringValue(elem, 'ARN')!,
distributionConfig: DistributionConfig.fromXml(
_s.extractXmlChild(elem, 'DistributionConfig')!),
domainName: _s.extractXmlStringValue(elem, 'DomainName')!,
id: _s.extractXmlStringValue(elem, 'Id')!,
inProgressInvalidationBatches:
_s.extractXmlIntValue(elem, 'InProgressInvalidationBatches')!,
lastModifiedTime: _s.extractXmlDateTimeValue(elem, 'LastModifiedTime')!,
status: _s.extractXmlStringValue(elem, 'Status')!,
activeTrustedKeyGroups: _s
.extractXmlChild(elem, 'ActiveTrustedKeyGroups')
?.let((e) => ActiveTrustedKeyGroups.fromXml(e)),
activeTrustedSigners: _s
.extractXmlChild(elem, 'ActiveTrustedSigners')
?.let((e) => ActiveTrustedSigners.fromXml(e)),
aliasICPRecordals: _s.extractXmlChild(elem, 'AliasICPRecordals')?.let(
(elem) => elem
.findElements('AliasICPRecordal')
.map((c) => AliasICPRecordal.fromXml(c))
.toList()),
);
}