I have a class
class SampleModel(BaseModel):
first_name: str
last_name int
When I export it to json, I want to json to be
{
"first-name": "john doe",
"last-name": 1234
}
I was going to use aliases, but does pydantic have a config or an option to directly do this for all fields in a model?