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