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

public static final class ExternalId.JsonUtil extends AbstractModelObject.JsonUtil<ExternalId>
JsonUtil class for building ExternalId instances.
  • Constructor Details

    • JsonUtil

      public JsonUtil()
  • Method Details

    • createModelObject

      public ExternalId createModelObject(com.google.gson.JsonObject jsonObject)
      Description copied from class: AbstractModelObject.JsonUtil
      Deserializes a model object reflectively.

      Every model object whose JSON mirrors its fields inherits this. The three whose shape does not (Disallows and the two external-identifier maps) override it, and ModelObjectGson routes nested occurrences of those back through the override.

      Specified by:
      createModelObject in interface IModelObject.IJsonUtil<ExternalId>
      Overrides:
      createModelObject in class AbstractModelObject.JsonUtil<ExternalId>
      Parameters:
      jsonObject - The JSON to read, which may be null or JSON null.
      Returns:
      The model object, or null.