Distribution.fromXml constructor

Distribution.fromXml(
  1. XmlElement elem
)

Implementation

factory Distribution.fromXml(_s.XmlElement elem) {
  return Distribution(
    arn: _s.extractXmlStringValue(elem, 'ARN')!,
    activeTrustedSigners: ActiveTrustedSigners.fromXml(
        _s.extractXmlChild(elem, 'ActiveTrustedSigners')!),
    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')!,
  );
}