-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong from supabase generation for optional enum #520
Comments
@TillJohanndeiter this may be a legacy issue with pre-nullable Dart. For now, add |
Fixed by #521 . Please run |
Works fine. Thank you! |
If a OfflineFirstWithSupabaseModel contains a optional enum then the generated code triggers a null pointer.
I have this class.
Here is the generate code:
Hence data['type'] is null there is a npe.
My current quick fix is to write a custom generator:
Thanks in advance!
The text was updated successfully, but these errors were encountered: