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

Nullable lists are not being mapped properly. #41

Closed
smotastic opened this issue Dec 13, 2021 · 0 comments · Fixed by #58
Closed

Nullable lists are not being mapped properly. #41

smotastic opened this issue Dec 13, 2021 · 0 comments · Fixed by #58
Labels
1.4.0 Release 1.4.0

Comments

@smotastic
Copy link
Owner

Nullable lists are not being mapped properly.
My Model contains: List<String>? values;
Generated mapper contains: values: entity.values.map((e) => e).toList()
which results in error "The method 'map' can't be unconditionally invoked because the receiver can be 'null'"

Shouldn't it be values: entity.values!.map((e) => e).toList()

Originally posted by @gopalsabhadiya in #12 (comment)

@smotastic smotastic mentioned this issue Dec 13, 2021
@smotastic smotastic added 1.3.0 Release 1.3.0 1.4.0 Release 1.4.0 and removed 1.3.0 Release 1.3.0 labels Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.4.0 Release 1.4.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant