fix bug: toJson does not pass raw parameter to model attributes