@Override
    public JavaType typeFromId(final DatabindContext databindContext, final String s) {
        // Get the type from the string from the stored Map. If not found, default to deserialize as a String.
        return idToType.containsKey(s) ? idToType.get(s) : databindContext.constructType(String.class);
    }
Provides quick lookup for Type deserialization extracted from the JSON payload. As well as the Java Object to types
compatible for the version 2.0 of GraphSON.

@author Kevin Gallardo (https://kgdo.me)
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONTypeIdResolver.java