Convert this class to JSON assuming that the to_simple() returns a pydantic model.
to_simple()
to_json_pydantic()