diff --git a/block.go b/block.go index 325baa0..7ed9d81 100644 --- a/block.go +++ b/block.go @@ -242,9 +242,10 @@ func (b TemplateBlock) MarshalJSON() ([]byte, error) { type Heading1Block struct { baseBlock - RichText []RichText `json:"rich_text"` - Children []Block `json:"children,omitempty"` - Color Color `json:"color,omitempty"` + RichText []RichText `json:"rich_text"` + Children []Block `json:"children,omitempty"` + Color Color `json:"color,omitempty"` + IsToggleable bool `json:"is_toggleable"` } // MarshalJSON implements json.Marshaler. @@ -264,9 +265,10 @@ func (b Heading1Block) MarshalJSON() ([]byte, error) { type Heading2Block struct { baseBlock - RichText []RichText `json:"rich_text"` - Children []Block `json:"children,omitempty"` - Color Color `json:"color,omitempty"` + RichText []RichText `json:"rich_text"` + Children []Block `json:"children,omitempty"` + Color Color `json:"color,omitempty"` + IsToggleable bool `json:"is_toggleable"` } // MarshalJSON implements json.Marshaler. @@ -286,9 +288,10 @@ func (b Heading2Block) MarshalJSON() ([]byte, error) { type Heading3Block struct { baseBlock - RichText []RichText `json:"rich_text"` - Children []Block `json:"children,omitempty"` - Color Color `json:"color,omitempty"` + RichText []RichText `json:"rich_text"` + Children []Block `json:"children,omitempty"` + Color Color `json:"color,omitempty"` + IsToggleable bool `json:"is_toggleable"` } // MarshalJSON implements json.Marshaler.