Get rid of BaseModel.to_json and BaseModel.from_json