Skip to content

fix required array in dart serialization#751

Merged
lohanidamodar merged 1 commit intomasterfrom
fix-dart-models-nullable-list
Jan 24, 2024
Merged

fix required array in dart serialization#751
lohanidamodar merged 1 commit intomasterfrom
fix-dart-models-nullable-list

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'] ?? [],

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