package com.mparticle.sdk.model.registration;

import com.fasterxml.jackson.annotation.JsonProperty;

public final class BooleanSetting extends Setting {

    @JsonProperty("checked")
    private boolean isChecked;

    /**
     *
     * @return true if set by default
     */
    public boolean isChecked() {
        return isChecked;
    }

    /**
     *
     * @param checked true if set by default
     * @return this
     */
    public BooleanSetting setIsChecked(boolean checked) {
        this.isChecked = checked;
        return this;
    }

    public BooleanSetting(String id, String name) {
        super(Type.BOOLEAN, id, name);
    }
}

@@ -148,16 +148,86 @@
 ting %7B%0A%0A
+    @JsonProperty(%22default_value%22)%0A    private boolean defaultValue;%0A%0A
     @Jso
@@ -710,11 +710,190 @@
 );%0A    %7D
+%0A%0A    public boolean isDefaultValue() %7B%0A        return defaultValue;%0A    %7D%0A%0A    public void setDefaultValue(boolean defaultValue) %7B%0A        this.defaultValue = defaultValue;%0A    %7D
 %0A%7D%0A

Allow default values for BooleanSetting