Skip to content

Add TypeHierarchyAdapters? #3

Open
@DanielGronau

Description

@DanielGronau

When a class contains a field with a vavr interface type, e.g. Map, Gson can't deserialize it, as it needs a certain implementation of Map. Often a particular implementation (like HashMap) would be a good default for the majority of classes, so one could just register a TypeHierarchyAdapter using a HashMap to deserialize a Map field. Such TypeHierarchyAdapters could be part of the library (but not registered in VavrGson, just as additional helpers).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions