Skip to content
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

fix required array in dart serialization #751

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

lohanidamodar
Copy link
Member

What does this PR do?

  • Handle required arrays that can be null during serialization in Dart and Flutter

Test Plan

  • Generated and tested manually

Related PRs and Issues

Have you read the Contributing Guidelines on issues?

YES

@lohanidamodar
Copy link
Member Author

Prior to fix

labels: map['labels'],

After fix

labels: map['labels'] ?? [],

@lohanidamodar lohanidamodar merged commit f875c96 into master Jan 24, 2024
34 of 36 checks passed
@lohanidamodar lohanidamodar deleted the fix-dart-models-nullable-list branch May 20, 2024 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 Bug Report: Unhandled Exception: type 'Null' is not a subtype of type 'List<dynamic>'
2 participants