TrafficPolicyInstance.fromXml constructor
TrafficPolicyInstance.fromXml(
- XmlElement elem
Implementation
factory TrafficPolicyInstance.fromXml(_s.XmlElement elem) {
return TrafficPolicyInstance(
hostedZoneId: _s.extractXmlStringValue(elem, 'HostedZoneId')!,
id: _s.extractXmlStringValue(elem, 'Id')!,
message: _s.extractXmlStringValue(elem, 'Message')!,
name: _s.extractXmlStringValue(elem, 'Name')!,
state: _s.extractXmlStringValue(elem, 'State')!,
ttl: _s.extractXmlIntValue(elem, 'TTL')!,
trafficPolicyId: _s.extractXmlStringValue(elem, 'TrafficPolicyId')!,
trafficPolicyType:
_s.extractXmlStringValue(elem, 'TrafficPolicyType')!.toRRType(),
trafficPolicyVersion:
_s.extractXmlIntValue(elem, 'TrafficPolicyVersion')!,
);
}