In toJSON method: access to model attributes through attributes dict instead of using 'get' method