ListGeoLocationsResponse.fromXml constructor

ListGeoLocationsResponse.fromXml(
  1. XmlElement elem
)

Implementation

factory ListGeoLocationsResponse.fromXml(_s.XmlElement elem) {
  return ListGeoLocationsResponse(
    geoLocationDetailsList: _s
        .extractXmlChild(elem, 'GeoLocationDetailsList')!
        .findElements('GeoLocationDetails')
        .map((c) => GeoLocationDetails.fromXml(c))
        .toList(),
    isTruncated: _s.extractXmlBoolValue(elem, 'IsTruncated')!,
    maxItems: _s.extractXmlStringValue(elem, 'MaxItems')!,
    nextContinentCode: _s.extractXmlStringValue(elem, 'NextContinentCode'),
    nextCountryCode: _s.extractXmlStringValue(elem, 'NextCountryCode'),
    nextSubdivisionCode:
        _s.extractXmlStringValue(elem, 'NextSubdivisionCode'),
  );
}