getNearbyPlaces function

Future<GoogleNearBySearchResponse> getNearbyPlaces(
  1. GoogleSearchParametersModle googleSearchParametersModle
)

Implementation

Future<GoogleNearBySearchResponse> getNearbyPlaces(
    GoogleSearchParametersModle googleSearchParametersModle) {
  try {
    SearchPlaces searchPlaces = SearchPlaces();
    searchPlaces.parameters = googleSearchParametersModle.toJson();
    return ServiceRequest.instance
        .executeRequest<GoogleNearBySearchResponse, void>(
            searchPlaces.createRequest());
  } catch (e) {
    throw Future.error(e);
  }
}