All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tw.yukina.notion.sdk.model.block.Todo Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
package tw.yukina.notion.sdk.model.block;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import org.jetbrains.annotations.NotNull;

@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class Todo extends Paragraph {
    private static final String CHECKED_FIELD = "checked";

    @JsonProperty(CHECKED_FIELD)
    private boolean checked = false;

    public Todo(@NotNull Paragraph paragraph){
        this.setChildren(paragraph.getChildren());
        this.setRichTexts(paragraph.getRichTexts());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy