Skip to content

@ignore annotation to exclude field from mapper  #40

@luissalgadofreire

Description

@luissalgadofreire

Thanks for the library. I'm a fan of Mapstruct and it's good to see a similar effort in the dart world.

One question or feature request. Is it possible to exclude a field from the automatic mapper, something similar to this?

The less we explicitly name the fields, the easier it becomes to maintain the mappings. This is particularly relevant when using libraries like Equatable that add helper fields we do not want to include in our mappings.

This would allow scenarios where we could say "map all fields except this one" as opposed to having to explicitly map all the ones we want.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions