GetHostedZoneResponse.fromXml constructor

GetHostedZoneResponse.fromXml(
  1. XmlElement elem
)

Implementation

factory GetHostedZoneResponse.fromXml(_s.XmlElement elem) {
  return GetHostedZoneResponse(
    hostedZone: HostedZone.fromXml(_s.extractXmlChild(elem, 'HostedZone')!),
    delegationSet: _s
        .extractXmlChild(elem, 'DelegationSet')
        ?.let((e) => DelegationSet.fromXml(e)),
    vPCs: _s.extractXmlChild(elem, 'VPCs')?.let((elem) =>
        elem.findElements('VPC').map((c) => VPC.fromXml(c)).toList()),
  );
}