schultek / stormberry

Access your postgres database effortlessly from dart code.
https://pub.dev/packages/stormberry
MIT License
68 stars 17 forks source link

How to generate toJson, fromJson methods for models in last versions of stormberry package? #74

Closed playbott closed 7 months ago

playbott commented 8 months ago

I am using the stormberry v0.14.0. As I know, there should be annotations for JSON serialization. I found code with using views in @Model annotation, but it seems View class doesn't exist. Are there any ways to generate toJson, fromJson methods?

schultek commented 8 months ago

See the 'meta' property on the @Model annotation

playbott commented 7 months ago

See the 'meta' property on the @model annotation

Hi! Thank you! I realized how to use it.