CreateDistributionResult.fromXml constructor

CreateDistributionResult.fromXml(
  1. XmlElement elem,
  2. {Map<String, String> headers}
)

Implementation

factory CreateDistributionResult.fromXml(
  _s.XmlElement elem, {
  Map<String, String> headers,
}) {
  return CreateDistributionResult(
    distribution: _s
        .extractXmlChild(elem, 'Distribution')
        ?.let((e) => Distribution.fromXml(e)),
    eTag: _s.extractHeaderStringValue(headers, 'ETag'),
    location: _s.extractHeaderStringValue(headers, 'Location'),
  );
}