toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  var map = <String, dynamic>{};
  if (_bounds != null) {
    map['bounds'] = _bounds?.toJson();
  }
  if (_location != null) {
    map['location'] = _location?.toJson();
  }
  map['location_type'] = _locationType;
  if (_viewport != null) {
    map['viewport'] = _viewport?.toJson();
  }
  return map;
}