Override to provide custom field naming.
Override to provide custom field naming. Caching is recommended for performance.
Given the JsObject
for the sealed family, disambiguate and
extract the JsObject
associated to the Name
implementation
(if available) or otherwise return None
.
Given the JsObject
for the sealed family, disambiguate and
extract the JsObject
associated to the Name
implementation
(if available) or otherwise return None
.
Given the JsObject
for the contained product type of Name
,
encode disambiguation information for later retrieval.
Given the JsObject
for the contained product type of Name
,
encode disambiguation information for later retrieval.
Product types are disambiguated by an extra JSON map layer containing a single key which is the name of the type of product contained in the value. e.g.
{"MyType":{...}}
This variant may be more appropriate for non-polymorphic schemas such as MongoDB and Mongoose (consider using the above format on your endpoints, and this format when persisting).