add toSobject method for project