see also <https://github.com/nim-lang/Nim/issues/16706> which has a snippet reduced from, IIUC, your use case in original post
- How to serialize/deserialize my data type with options and DateTi... adnan
- How to serialize/deserialize my data type with options and D... b3liever
- How to serialize/deserialize my data type with options a... QMaster
- How to serialize/deserialize my data type with optio... timothee
