def make_json_response(
content: Union[BaseModel, Iterable[BaseModel]],
status_code: int,
by_alias: bool,
exclude_none: bool = False,
many: bool = False,
) -> Response:
...
js = content.json(exclude_none=exclude_none, by_alias=by_alias)
...
The content.json method has a default value for the by_alias argument.