package com.github.chrisprice.phonegapbuild.api.data.apps;

import org.codehaus.jackson.annotate.JsonProperty;

public class AppDetailsRequest {
  public static class Keys {
    private int ios;

    public int getIos() {
      return ios;
    }

    public void setIos(int ios) {
      this.ios = ios;
    }

  }

  private String title;
  @JsonProperty("package")
  private String packageName;
  private String version;
  @JsonProperty("create_method")
  private String createMethod;
  private Keys keys;

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public String getCreateMethod() {
    return createMethod;
  }

  public void setCreateMethod(String createMethod) {
    this.createMethod = createMethod;
  }

  public String getPackage() {
    return packageName;
  }

  public void setPackage(String packageName) {
    this.packageName = packageName;
  }

  public String getVersion() {
    return version;
  }

  public void setVersion(String version) {
    this.version = version;
  }

  public Keys getKeys() {
    return keys;
  }

  public void setKeys(Keys keys) {
    this.keys = keys;
  }

}

@@ -108,41 +108,210 @@
 ty;%0A
-%0Apublic class AppDetailsRequest %7B
+import org.codehaus.jackson.map.annotate.JsonSerialize;%0Aimport org.codehaus.jackson.map.annotate.JsonSerialize.Inclusion;%0A%0Apublic class AppDetailsRequest %7B%0A  @JsonSerialize(include = Inclusion.NON_NULL)
 %0A  p
@@ -348,19 +348,23 @@
 private 
-i
+I
 nt
+eger
  ios;%0A%0A 
@@ -373,19 +373,23 @@
  public 
-i
+I
 nt
+eger
  getIos(
@@ -444,11 +444,15 @@
 Ios(
-i
+I
 nt
+eger
  ios

fix builds which don't specify an ios key. this is achieved by changing the serialisation policy on the AppDetailsRequest to exclude null fields