StreamingDistributionSummary.fromXml constructor

StreamingDistributionSummary.fromXml(
  1. XmlElement elem
)

Implementation

factory StreamingDistributionSummary.fromXml(_s.XmlElement elem) {
  return StreamingDistributionSummary(
    arn: _s.extractXmlStringValue(elem, 'ARN')!,
    aliases: Aliases.fromXml(_s.extractXmlChild(elem, 'Aliases')!),
    comment: _s.extractXmlStringValue(elem, 'Comment')!,
    domainName: _s.extractXmlStringValue(elem, 'DomainName')!,
    enabled: _s.extractXmlBoolValue(elem, 'Enabled')!,
    id: _s.extractXmlStringValue(elem, 'Id')!,
    lastModifiedTime: _s.extractXmlDateTimeValue(elem, 'LastModifiedTime')!,
    priceClass: _s.extractXmlStringValue(elem, 'PriceClass')!.toPriceClass(),
    s3Origin: S3Origin.fromXml(_s.extractXmlChild(elem, 'S3Origin')!),
    status: _s.extractXmlStringValue(elem, 'Status')!,
    trustedSigners:
        TrustedSigners.fromXml(_s.extractXmlChild(elem, 'TrustedSigners')!),
  );
}