package com.ss.android.ugc.aweme.shortvideo.model;

import X.2HN;
import X.M12;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import java.io.Serializable;

public final class FlowDataMusicInfo implements Parcelable, Serializable {
    public static final Parcelable.Creator<FlowDataMusicInfo> CREATOR = new Creator();
    @c(LIZ = "is_selected_by_auto")
    public boolean isSelectedByAuto;

    public static class Creator implements Parcelable.Creator<FlowDataMusicInfo> {
        static {
            Covode.recordClassIndex(111002);
        }

        public final FlowDataMusicInfo createFromParcel(Parcel parcel) {
            M12.LIZ(parcel);
            return new FlowDataMusicInfo(parcel.readInt() != 0);
        }

        public final FlowDataMusicInfo[] newArray(int i) {
            return new FlowDataMusicInfo[i];
        }
    }

    static {
        Covode.recordClassIndex(111001);
    }

    public FlowDataMusicInfo() {
        this(false, 1, (2HN) null);
    }

    public final int describeContents() {
        return 0;
    }

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        parcel.writeInt(this.isSelectedByAuto ? 1 : 0);
    }

    public final boolean isSelectedByAuto() {
        return this.isSelectedByAuto;
    }

    public final void setSelectedByAuto(boolean z) {
        this.isSelectedByAuto = z;
    }

    public FlowDataMusicInfo(boolean z) {
        this.isSelectedByAuto = z;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ FlowDataMusicInfo(boolean z, int i, 2HN r4) {
        this((i & 1) != 0 ? false : z);
    }
}
