Add mapper class for converting the json into objects