public DescribeCacheResult unmarshall(JsonUnmarshallerContext context) throws Exception {
    DescribeCacheResult describeCacheResult = new DescribeCacheResult();

    int originalDepth = context.getCurrentDepth();
    String currentParentElement = context.getCurrentParentElement();
    int targetDepth = originalDepth + 1;

    JsonToken token = context.currentToken;
    if (token == null) token = context.nextToken();
    if (token == VALUE_NULL) return null;

    while (true) {
      if (token == null) break;

      if (token == FIELD_NAME || token == START_OBJECT) {
        if (context.testExpression("GatewayARN", targetDepth)) {
          context.nextToken();
          describeCacheResult.setGatewayARN(
              StringJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("DiskIds", targetDepth)) {
          describeCacheResult.setDiskIds(
              new ListUnmarshaller<String>(StringJsonUnmarshaller.getInstance())
                  .unmarshall(context));
        }
        if (context.testExpression("CacheAllocatedInBytes", targetDepth)) {
          context.nextToken();
          describeCacheResult.setCacheAllocatedInBytes(
              LongJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("CacheUsedPercentage", targetDepth)) {
          context.nextToken();
          describeCacheResult.setCacheUsedPercentage(
              DoubleJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("CacheDirtyPercentage", targetDepth)) {
          context.nextToken();
          describeCacheResult.setCacheDirtyPercentage(
              DoubleJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("CacheHitPercentage", targetDepth)) {
          context.nextToken();
          describeCacheResult.setCacheHitPercentage(
              DoubleJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("CacheMissPercentage", targetDepth)) {
          context.nextToken();
          describeCacheResult.setCacheMissPercentage(
              DoubleJsonUnmarshaller.getInstance().unmarshall(context));
        }
      } else if (token == END_ARRAY || token == END_OBJECT) {
        if (context.getLastParsedParentElement() == null
            || context.getLastParsedParentElement().equals(currentParentElement)) {
          if (context.getCurrentDepth() <= originalDepth) break;
        }
      }

      token = context.nextToken();
    }

    return describeCacheResult;
  }
  public StorediSCSIVolume unmarshall(JsonUnmarshallerContext context) throws Exception {
    StorediSCSIVolume storediSCSIVolume = new StorediSCSIVolume();

    int originalDepth = context.getCurrentDepth();
    String currentParentElement = context.getCurrentParentElement();
    int targetDepth = originalDepth + 1;

    JsonToken token = context.getCurrentToken();
    if (token == null) token = context.nextToken();
    if (token == VALUE_NULL) return null;

    while (true) {
      if (token == null) break;

      if (token == FIELD_NAME || token == START_OBJECT) {
        if (context.testExpression("VolumeARN", targetDepth)) {
          context.nextToken();
          storediSCSIVolume.setVolumeARN(StringJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("VolumeId", targetDepth)) {
          context.nextToken();
          storediSCSIVolume.setVolumeId(StringJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("VolumeType", targetDepth)) {
          context.nextToken();
          storediSCSIVolume.setVolumeType(StringJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("VolumeStatus", targetDepth)) {
          context.nextToken();
          storediSCSIVolume.setVolumeStatus(
              StringJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("VolumeSizeInBytes", targetDepth)) {
          context.nextToken();
          storediSCSIVolume.setVolumeSizeInBytes(
              LongJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("VolumeProgress", targetDepth)) {
          context.nextToken();
          storediSCSIVolume.setVolumeProgress(
              DoubleJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("VolumeDiskId", targetDepth)) {
          context.nextToken();
          storediSCSIVolume.setVolumeDiskId(
              StringJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("SourceSnapshotId", targetDepth)) {
          context.nextToken();
          storediSCSIVolume.setSourceSnapshotId(
              StringJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("PreservedExistingData", targetDepth)) {
          context.nextToken();
          storediSCSIVolume.setPreservedExistingData(
              BooleanJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("VolumeiSCSIAttributes", targetDepth)) {
          context.nextToken();
          storediSCSIVolume.setVolumeiSCSIAttributes(
              VolumeiSCSIAttributesJsonUnmarshaller.getInstance().unmarshall(context));
        }
      } else if (token == END_ARRAY || token == END_OBJECT) {
        if (context.getLastParsedParentElement() == null
            || context.getLastParsedParentElement().equals(currentParentElement)) {
          if (context.getCurrentDepth() <= originalDepth) break;
        }
      }
      token = context.nextToken();
    }

    return storediSCSIVolume;
  }