public static class Storefront.Swatch extends AbstractResponse<Storefront.Swatch>
optimisticData, responseData| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getColor()
The swatch color.
|
java.lang.String |
getGraphQlTypeName() |
Storefront.MediaImage |
getImage()
The swatch image.
|
Storefront.Swatch |
setColor(java.lang.String arg) |
Storefront.Swatch |
setImage(Storefront.MediaImage arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic Swatch()
public Swatch(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
public java.lang.String getColor()
public Storefront.Swatch setColor(java.lang.String arg)
public Storefront.MediaImage getImage()
public Storefront.Swatch setImage(Storefront.MediaImage arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.Swatch>