Skip to content

Nullable lists are not being mapped properly. #41

@smotastic

Description

@smotastic

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.4.0Release 1.4.0

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions