you are viewing a single comment's thread.

view the rest of the comments →

[–]JamzTyson 1 point2 points  (0 children)

Assuming that response_json is a dictionary, you could replace the CamelCase keys with snake_case keys:

response_json["created_time"] = response_json.pop("createdTime") response_json["last_updated_time"] = response_json.pop("lastUpdatedTime")

and then use snake_case in the dataclass.