My Business
3.9K members online now
3.9K members online now
For developers who are using the Google My Business API to manage locations
Guide Me
star_border
Reply

How to convert com.google.api.services.mybusiness.v3.model.Location to map

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I would like to convert Java model objects such as Locations and Reviews to and from map.

I tried using jackson desrializing, but it is throwing  exceptions.

Location location = objectMapper.convertValue(locationMap,Location.class);

 

1 Expert replyverified_user

Re: How to convert com.google.api.services.mybusiness.v3.model.Location to map

Google Employee
# 2
Google Employee

Hi @Mohammed Hashim P,

 

Please make sure you have a whitelisted project in Google API Console to access the Google My Business API. Judging from your email address on this board, your may not have a whitelisted project to access the Google My Business API, so before  you use any Google My Business API, you need to have a whitelisted project to access them.

 

Please do let me know if you have any questions!

 

Thanks,

Shalini, Google My Business API team