You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, please explain how you design work with typed Block (e.g. Paragraph) after retrieve Page?
NotionResponse resBlocks =await notion.blocks.list(block_id:'YYYYYYYYY');
Pagination paging = resBlocks.content;
for (Block block in paging.blocks) {
if (block.isParagraph) {
//<-- HOW TO GET Paragraph Object ?
}
}
`
The text was updated successfully, but these errors were encountered:
Right now only can be obtained from jsonContent attribute :(
NotionResponse resBlocks =await notion.blocks.list(block_id:'YYYYYYYYY');
Pagination paging = resBlocks.content;
for (Block block in paging.blocks) {
if (block.isParagraph) {
print(block.jsonContent);
}
}
I don't like a lot of things in this package, so I'm doing it again almost from scratch breaking my mind in the process. I will think about a way to solve this problem for this new version.
Thanks for letting me know and sorry for all my mess here hehe
Thanks, it's clear now.
Dude, the code is great, don't worry. It would be worse if it didn't exist at all.
Let's try to fix the current one and support those who already use it.
May the force be with you)
Uh oh!
There was an error while loading. Please reload this page.
Hi, please explain how you design work with typed Block (e.g. Paragraph) after retrieve Page?
The text was updated successfully, but these errors were encountered: