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, 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!
The text was updated successfully, but these errors were encountered:
Hi @realcr! The fact that you're asking this question suggests that built_value cannot be applied in a way similar to how json_serializable can be. That sounds surprising, but I'd need to try it to answer, because I haven't used built_value.
If I find time this week, I'll take a look into it. Please post a message if you find a solution earlier!
Hi, thank you for your work on
sum_types
!Is there a way to use
sum_types
together withbuilt_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 foundjson_serializable
andbuilt_value
. Checking the examples in this repository, I could find an example usingjson_serializable
, but didn't find anywhere an example usingbuilt_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!The text was updated successfully, but these errors were encountered: