Copied over from holo-nim/holo-json#13
Ideally users can use the output of defaultFieldMappings and modify it rather than typing each individual field. But object field output and both enum field input and output support incomplete mappings already, it's just object input field mappings that don't. And iterating over fields twice might have a performance penalty.
On the other side the final iterators can just use getTypeImpl instead of getTypeInst.
Copied over from holo-nim/holo-json#13
Ideally users can use the output of
defaultFieldMappingsand modify it rather than typing each individual field. But object field output and both enum field input and output support incomplete mappings already, it's just object input field mappings that don't. And iterating over fields twice might have a performance penalty.On the other side the final iterators can just use
getTypeImplinstead ofgetTypeInst.