Polymorphism

A collection of 1 post

Gson using AutoValue and Polymorphism

Gson using AutoValue and Polymorphism

Recently, I ran into a situation where a RESTful API provided me with a list of objects. Normally this isn’t a problem since REST provides you with a structure that is easy to convert. The catch was that some objects inside other objects were polymorphic and required to parse specific fields.