Serialization and deserialization of structs and other fields #2468
Labels
awaiting
Waiting for responses, PR, further discussions, upstream release, etc
enhancement
New feature or request
Is your feature request related to a problem? Please describe.
I want to use JSON serialization in FRB because I have JSON data I generate on the Rust side and then need to show that in the UI on the Flutter side.
Describe the solution you'd like
There are a few solutions I thought of:
#[derive(Serialize, Deserialize)
, perhaps it could be generated automatically on the Dart side just asserde
does on the Rust side. The Dart side could even do so via the above freezed way.Describe alternatives you've considered
Changing the generated code to use the freezed JSON methods or writing it manually in the Dart or Rust code. This can be brittle though, especially changing generated code.
Additional context
NA
The text was updated successfully, but these errors were encountered: