package ca.sukhsingh.actions.on.google.response.data.google.richresponse;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Created by sukhsingh on 2017-08-14.
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Item {

    public Item(SimpleResponse simpleResponse) {
        this.simpleResponse = simpleResponse;
    }

    public Item(BasicCard basicCard) {
        this.basicCard = basicCard;
    }

    public Item(StructuredResponse structuredResponse) {
        this.structuredResponse = structuredResponse;
    }

    @JsonProperty("simpleResponse")
    private SimpleResponse simpleResponse;

    @JsonProperty("basicCard")
    private BasicCard basicCard;

    @JsonProperty("structuredResponse")
    private StructuredResponse structuredResponse;

    public SimpleResponse getSimpleResponse() {
        return simpleResponse;
    }

    public void setSimpleResponse(SimpleResponse simpleResponse) {
        this.simpleResponse = simpleResponse;
    }

    public BasicCard getBasicCard() {
        return basicCard;
    }

    public void setBasicCard(BasicCard basicCard) {
        this.basicCard = basicCard;
    }

    public StructuredResponse getStructuredResponse() {
        return structuredResponse;
    }

    public void setStructuredResponse(StructuredResponse structuredResponse) {
        this.structuredResponse = structuredResponse;
    }

    public class StructuredResponse {

        @JsonProperty("orderUpdate")
        private OrderUpdate orderUpdate;

        public OrderUpdate getOrderUpdate() {
            return orderUpdate;
        }

        public void setOrderUpdate(OrderUpdate orderUpdate) {
            this.orderUpdate = orderUpdate;
        }
    }

    //TODO still have to do it
    public class OrderUpdate {

    }
}

@@ -285,16 +285,257 @@
 s Item %7B
+%0A    %0A    @JsonProperty(%22simpleResponse%22)%0A    private SimpleResponse simpleResponse;%0A%0A    @JsonProperty(%22basicCard%22)%0A    private BasicCard basicCard;%0A%0A    @JsonProperty(%22structuredResponse%22)%0A    private StructuredResponse structuredResponse;
 %0A%0A    pu
@@ -834,245 +834,8 @@
  %7D%0A%0A
-    @JsonProperty(%22simpleResponse%22)%0A    private SimpleResponse simpleResponse;%0A%0A    @JsonProperty(%22basicCard%22)%0A    private BasicCard basicCard;%0A%0A    @JsonProperty(%22structuredResponse%22)%0A    private StructuredResponse structuredResponse;%0A%0A
     

Update Item.java