Google my business enum in api data

Hi,

I have integrated with google my business to fetch business data. The only major blocker is - Google send Review_Rating data as enum (FIVE, FOUR etc) where as my data field is number (not text for calculation and other reasons).

As it is part of API workflow I am not able to convert data.

Kindly help me out. Thanks in Advance.

FIVE (5) years later I am facing the same problem. Anyone with an idea? :slight_smile:

For anybody who is interested.

I am just using the following approach:

When getting the data i added 5 times the find&replace addition with

Find : ONE → Replace: 1
Find: TWO → Replace: 2
.
.
.
and then converted to number

That works fine so far. :slight_smile: