package com.ss.android.ugc.aweme.effectplatform;

import X.2HN;
import X.C2905Q8o;
import X.M12;
import X.PLW;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import com.ss.android.ugc.effectmanager.effect.model.Effect;

public final class FilterEffect extends Effect implements Parcelable {
    public static final Parcelable.Creator<FilterEffect> CREATOR = new C2905Q8o();
    public static final PLW Companion = new PLW((byte) 0);
    @c(LIZ = "is_buildin")
    public boolean buildIn;
    @c(LIZ = "is_checked")
    public boolean checked;
    public final com.ss.ugc.effectplatform.model.Effect kEffect;

    public FilterEffect() {
        this((com.ss.ugc.effectplatform.model.Effect) null, 1, (2HN) null);
    }

    public final int describeContents() {
        return 0;
    }

    public final int getInt(boolean z) {
        return z ? 1 : 0;
    }

    public final int toInt(boolean z) {
        return z ? 1 : 0;
    }

    public final boolean getBuildIn() {
        return this.buildIn;
    }

    public final boolean getChecked() {
        return this.checked;
    }

    public final com.ss.ugc.effectplatform.model.Effect getKEffect() {
        return this.kEffect;
    }

    static {
        Covode.recordClassIndex(74092);
    }

    public final void setBuildIn(boolean z) {
        this.buildIn = z;
    }

    public final void setChecked(boolean z) {
        this.checked = z;
    }

    public FilterEffect(com.ss.ugc.effectplatform.model.Effect effect) {
        super(effect);
        this.kEffect = effect;
    }

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        if (getKEffect() != null) {
            getKEffect().writeToParcel(parcel, i);
        } else {
            FilterEffect.super.writeToParcel(parcel, i);
        }
        parcel.writeByte((byte) getInt(this.checked));
        parcel.writeByte((byte) getInt(this.checked));
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ FilterEffect(com.ss.ugc.effectplatform.model.Effect effect, int i, 2HN r4) {
        this((i & 1) != 0 ? null : effect);
    }
}
