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
Is your feature request related to a problem? Please describe.
Hello,
I am currently working on implementing data synchronization. Since the server will receive partial data from clients, it will be nice to have a seamless way to map this data to drift.
Describe the solution you'd like
I propose adding an option in the build.yaml to create a fromJson method for the companion data class.
I have implemented a workaround following the guide in this previous issue, however, the solution is no longer as straightforward since I make use of DialectAwareSqlType type. For example:
Is your feature request related to a problem? Please describe.
Hello,
I am currently working on implementing data synchronization. Since the server will receive partial data from clients, it will be nice to have a seamless way to map this data to drift.
Describe the solution you'd like
I propose adding an option in the
build.yaml
to create afromJson
method for the companion data class.I have implemented a workaround following the guide in this previous issue, however, the solution is no longer as straightforward since I make use of
DialectAwareSqlType
type. For example:I also ried simplifying the solution by using the typeMapping.read() but this expects to parse a dart type and not JSON.
It would be much better (developer-wise) and safer if the companion could support parsing JSON. Thanks !!
The text was updated successfully, but these errors were encountered: