Class ExternalUrl.JsonUtil
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.JsonUtil<ExternalUrl>
se.michaelthelin.spotify.model_objects.specification.ExternalUrl.JsonUtil
- All Implemented Interfaces:
IModelObject.IJsonUtil<ExternalUrl>
- Enclosing class:
ExternalUrl
JsonUtil class for building
ExternalUrl 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, modelTypeModifier and TypeMethodDescriptioncreateModelObject(String json) Build a model object with the information given in a json string.createModelObjectArray(com.google.gson.JsonArray jsonArray) Create an array of model objects out of a json array object.createModelObjectArray(String json) Create an array of model objects out of a json string.createModelObjectArray(String json, String key) Create an array of model objects out of a json array, which is contained in a json object.createModelObjectPaging(com.google.gson.JsonObject jsonObject) Create a paging of model objects out of a json object.Create a paging of model objects out of a json string.createModelObjectPaging(String json, String key) Create a paging of model objects out of a json array, which is contained in a json object.createModelObjectPagingCursorbased(com.google.gson.JsonObject jsonObject) Create a cursor-based paging of model objects out of a json object.Create a cursor-based paging of model objects out of a json string.createModelObjectPagingCursorbased(String json, String key) Create a cursor-based paging of model objects out of a json array, which is contained in a json object.booleanhasAndNotNull(com.google.gson.JsonObject jsonObject, String memberName) Check whether the supplied JSON object contains data in the given member, which is notnull.protected TypeThe model type this JsonUtil produces, taken from the type argument it was declared with.
-
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<ExternalUrl>- Overrides:
createModelObjectin classAbstractModelObject.JsonUtil<ExternalUrl>- Parameters:
jsonObject- The JSON to read, which may benullor JSON null.- Returns:
- The model object, or
null.
-