Class ExternalId.JsonUtil
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.JsonUtil<ExternalId>
se.michaelthelin.spotify.model_objects.specification.ExternalId.JsonUtil
- All Implemented Interfaces:
IModelObject.IJsonUtil<ExternalId>
- Enclosing class:
ExternalId
JsonUtil class for building
ExternalId instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateModelObject(com.google.gson.JsonObject jsonObject) Deserializes a model object reflectively.Methods inherited from class AbstractModelObject.JsonUtil
createModelObject, createModelObjectArray, createModelObjectArray, createModelObjectArray, createModelObjectPaging, createModelObjectPaging, createModelObjectPaging, createModelObjectPagingCursorbased, createModelObjectPagingCursorbased, createModelObjectPagingCursorbased, hasAndNotNull, modelType
-
Constructor Details
-
JsonUtil
public JsonUtil()
-
-
Method Details
-
createModelObject
Description copied from class:AbstractModelObject.JsonUtilDeserializes a model object reflectively.Every model object whose JSON mirrors its fields inherits this. The three whose shape does not (
Disallowsand the two external-identifier maps) override it, andModelObjectGsonroutes nested occurrences of those back through the override.- Specified by:
createModelObjectin interfaceIModelObject.IJsonUtil<ExternalId>- Overrides:
createModelObjectin classAbstractModelObject.JsonUtil<ExternalId>- Parameters:
jsonObject- The JSON to read, which may benullor JSON null.- Returns:
- The model object, or
null.
-