toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'query': query,
    'location': location?.toMap(),
    'radius': radius,
    'bounds': bounds?.toMap(),
    'poiTypes': poiTypes?.map((LocationType t) => t.toString()).toList(),
    'countryCode': countryCode,
    'language': language,
    'children': children,
    'strictBounds': strictBounds,
    'countries': countries?.map((String t) => t.toString()).toList(),
  };
}