unmarshalJson
public static <T extends VersionedData> T unmarshalJson(VersionedDataKind<T> kind,
java.lang.String data)
Unmarshals a feature store item from a JSON string. This is a very simple wrapper around a Gson
method, just to allow external feature store implementations to make use of the Gson instance
that's inside the SDK rather than having to import Gson themselves.
- Type Parameters:
T
- class of the object that will be returned
- Parameters:
kind
- specifies the type of item being decoded
data
- the JSON string
- Returns:
- the unmarshaled item
- Throws:
FeatureStoreHelpers.UnmarshalException
- if the JSON string was invalid