mirror of
https://github.com/dstotijn/go-notion.git
synced 2025-06-08 23:46:12 +02:00
Add is_toggleable
behavior to heading_{1,2,3}
block types (#41)
This commit is contained in:
parent
e399b8957d
commit
1b585c661f
3
block.go
3
block.go
@ -245,6 +245,7 @@ type Heading1Block struct {
|
|||||||
RichText []RichText `json:"rich_text"`
|
RichText []RichText `json:"rich_text"`
|
||||||
Children []Block `json:"children,omitempty"`
|
Children []Block `json:"children,omitempty"`
|
||||||
Color Color `json:"color,omitempty"`
|
Color Color `json:"color,omitempty"`
|
||||||
|
IsToggleable bool `json:"is_toggleable"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarshalJSON implements json.Marshaler.
|
// MarshalJSON implements json.Marshaler.
|
||||||
@ -267,6 +268,7 @@ type Heading2Block struct {
|
|||||||
RichText []RichText `json:"rich_text"`
|
RichText []RichText `json:"rich_text"`
|
||||||
Children []Block `json:"children,omitempty"`
|
Children []Block `json:"children,omitempty"`
|
||||||
Color Color `json:"color,omitempty"`
|
Color Color `json:"color,omitempty"`
|
||||||
|
IsToggleable bool `json:"is_toggleable"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarshalJSON implements json.Marshaler.
|
// MarshalJSON implements json.Marshaler.
|
||||||
@ -289,6 +291,7 @@ type Heading3Block struct {
|
|||||||
RichText []RichText `json:"rich_text"`
|
RichText []RichText `json:"rich_text"`
|
||||||
Children []Block `json:"children,omitempty"`
|
Children []Block `json:"children,omitempty"`
|
||||||
Color Color `json:"color,omitempty"`
|
Color Color `json:"color,omitempty"`
|
||||||
|
IsToggleable bool `json:"is_toggleable"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarshalJSON implements json.Marshaler.
|
// MarshalJSON implements json.Marshaler.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user