I am using AutoValue in my models, I want to update the isTrue()
value of the model when the user does something. So I need help. Here is my model.
@AutoValue
public abstract class Xyz implements Parcelable {
@SerializedName("isTrue")
public abstract boolean isTrue();
@Nullable
@SerializedName("lead_image_url")
public abstract String lead_image_url();
public static TypeAdapter<Readable> typeAdapter(Gson gson) {
return new AutoValue_Readable.GsonTypeAdapter(gson);
}
}