`__type` being applied to nested objects even when includeTypeId is set false
Opened this issue · 1 comments
AhmedLSayed9 commented
Is there a way to avoid adding __type
for the nested objects?
i.e I'm doing the following:
SomeMapper.ensureInitialized()
.encodeJson(this, EncodingOptions(includeTypeId: false));
SomeMapper has nested objects which themselves should add the __type
property in normal cases.
However, I want to prevent SomeMapper and all nested objects from adding __type
schultek commented
Yes that should actually disable the __type
property for all nested types. Could be a bug, I will look into it.