Macro to generate codec for polymorphic but non-ADT edge type.
Macro to generate codec for polymorphic but non-ADT edge type.
This macro is provided because predefined edges do not build an ADT and jsoniter-scala does not deal with polymorphic, non-ADT types. You can invoke this macro by providing the root type along with all subtypes that are used in the Graph. For instance, provided the node type String and a mixed Graph using DiEdge and UnDiEdge, call