Hi Mushiar,
I would suggest to create a non-persistent, temporary data structure where you store the result of the REST call.
After the call is completed you can then process the result and transform it to your target structure.
This approach will generate some more development overhead, but you can add additional plausibility checks and you have more control on the update of your persistent data.