@Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;

    if (obj instanceof DocumentDescription == false) return false;
    DocumentDescription other = (DocumentDescription) obj;
    if (other.getSha1() == null ^ this.getSha1() == null) return false;
    if (other.getSha1() != null && other.getSha1().equals(this.getSha1()) == false) return false;
    if (other.getName() == null ^ this.getName() == null) return false;
    if (other.getName() != null && other.getName().equals(this.getName()) == false) return false;
    if (other.getCreatedDate() == null ^ this.getCreatedDate() == null) return false;
    if (other.getCreatedDate() != null
        && other.getCreatedDate().equals(this.getCreatedDate()) == false) return false;
    if (other.getStatus() == null ^ this.getStatus() == null) return false;
    if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
      return false;
    if (other.getDescription() == null ^ this.getDescription() == null) return false;
    if (other.getDescription() != null
        && other.getDescription().equals(this.getDescription()) == false) return false;
    if (other.getParameters() == null ^ this.getParameters() == null) return false;
    if (other.getParameters() != null
        && other.getParameters().equals(this.getParameters()) == false) return false;
    if (other.getPlatformTypes() == null ^ this.getPlatformTypes() == null) return false;
    if (other.getPlatformTypes() != null
        && other.getPlatformTypes().equals(this.getPlatformTypes()) == false) return false;
    return true;
  }
  public DocumentDescription unmarshall(JsonUnmarshallerContext context) throws Exception {
    DocumentDescription documentDescription = new DocumentDescription();

    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("Sha1", targetDepth)) {
          context.nextToken();
          documentDescription.setSha1(context.getUnmarshaller(String.class).unmarshall(context));
        }
        if (context.testExpression("Hash", targetDepth)) {
          context.nextToken();
          documentDescription.setHash(context.getUnmarshaller(String.class).unmarshall(context));
        }
        if (context.testExpression("HashType", targetDepth)) {
          context.nextToken();
          documentDescription.setHashType(
              context.getUnmarshaller(String.class).unmarshall(context));
        }
        if (context.testExpression("Name", targetDepth)) {
          context.nextToken();
          documentDescription.setName(context.getUnmarshaller(String.class).unmarshall(context));
        }
        if (context.testExpression("Owner", targetDepth)) {
          context.nextToken();
          documentDescription.setOwner(context.getUnmarshaller(String.class).unmarshall(context));
        }
        if (context.testExpression("CreatedDate", targetDepth)) {
          context.nextToken();
          documentDescription.setCreatedDate(
              context.getUnmarshaller(java.util.Date.class).unmarshall(context));
        }
        if (context.testExpression("Status", targetDepth)) {
          context.nextToken();
          documentDescription.setStatus(context.getUnmarshaller(String.class).unmarshall(context));
        }
        if (context.testExpression("Description", targetDepth)) {
          context.nextToken();
          documentDescription.setDescription(
              context.getUnmarshaller(String.class).unmarshall(context));
        }
        if (context.testExpression("Parameters", targetDepth)) {
          context.nextToken();
          documentDescription.setParameters(
              new ListUnmarshaller<DocumentParameter>(
                      DocumentParameterJsonUnmarshaller.getInstance())
                  .unmarshall(context));
        }
        if (context.testExpression("PlatformTypes", targetDepth)) {
          context.nextToken();
          documentDescription.setPlatformTypes(
              new ListUnmarshaller<String>(context.getUnmarshaller(String.class))
                  .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 documentDescription;
  }