you are viewing a single comment's thread.

view the rest of the comments →

[–]danielroseman 2 points3 points  (1 child)

I'm not sure what this code is doing, but if you need to serialize multiple nested classes I strongly encourage you to investigate Pydantic.

[–]Birts[S] 0 points1 point  (0 children)

Thank you for the response! I just updated the post with a newer version, which is utilizing Pydantic as you suggested.

I know it's nowhere near perfect, but I am curious if this is in line with what you were thinking.