How to save object from api response

You can insert them into local storage on success of the api component.