Maps JSON values to class attributes