Skip to content

Compatibility with built_value for serialization #2

@realcr

Description

@realcr

Hi, thank you for your work on sum_types!
Is there a way to use sum_types together with built_value for serialization?

I am trying to create an interop between a Rust binary and a Flutter application, and sum_types looks very promising to allow representing something similar to Rust's enums. I am exploring possible serialization libs, and I found json_serializable and built_value. Checking the examples in this repository, I could find an example using json_serializable, but didn't find anywhere an example using built_value.

I prefer using built_value because it seems like it is more strict. That said, I am a beginner with dart, I was wondering what is your take on this. Thank you!

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