• 1Installation
  • 2Preliminary Knowledge
  • 3Common Mapping
  • 4Conversions
  • 5Mapper.DTO

Mapper.apex

  • Docs
  • Tutorials
Getting started with Mapper.apex

Mapper.DTO

Mapper.DTO comes along with Mapper.apex to handle the nested map issue. Often when we manipulate maps nested in maps, things get complicated, as we need to check null, create empty map and handle all these trivial logic.

In Mapper.apex, it is fairly easy.

Mapper.DTO d = new Mapper.DTO();
d.setList('person.children', new List{});
Integer salary = d.getInteger('person.job.salary');

Internally Mapper.DTO maintains the nested map for us, and exposes handly APIs to access the data.