Skip to content

[Feature] Deserialize notion objects from json string #25

@akhildevelops

Description

@akhildevelops

It would be nice to have a way to deserialize notion objects like QueryDatabaseRequest to be deserialized from a json string.

{
            "filter": {
                "property": "Date",
                "date": {"on_or_after": "2020-01-01"},
            }
        }

Expecting API to be rougly below where string will be above json.

request = QueryDatabaseRequest::from_json(string:&str)?;

Let me know if you're interested will give a PR ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions