-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Description
For now we have to create mapper instance:
final mapper = SomeMapperImpl();
final entities = models.map(mapper.fromModel);
It would be greate to use mappers as static
final entities = models.map(SomeMapper.fromModel);
Something like this:
@Mapper()
abstract class EntityMapper {
static Entity fromModel(Model model) => _$EntityMapperFromModel(model);
}
Metadata
Metadata
Assignees
Labels
No labels