InstanceMetadataOptions.fromXml constructor
InstanceMetadataOptions.fromXml(
- XmlElement elem
Implementation
factory InstanceMetadataOptions.fromXml(_s.XmlElement elem) {
return InstanceMetadataOptions(
httpEndpoint: _s
.extractXmlStringValue(elem, 'HttpEndpoint')
?.toInstanceMetadataEndpointState(),
httpPutResponseHopLimit:
_s.extractXmlIntValue(elem, 'HttpPutResponseHopLimit'),
httpTokens: _s
.extractXmlStringValue(elem, 'HttpTokens')
?.toInstanceMetadataHttpTokensState(),
);
}