As the API client is doing now, use the more up to date and Python built in `dataclassess` where needed. _Originally posted by @acroz in https://github.com/facultyai/faculty/pull/197#discussion_r784816133_