# How to map with Dictionary map

**URL:** <https://forum.alumio.com/t/how-to-map-with-dictionary-map/267>\
**Category:** Transformers\
**Tags:** mappers\
**Created:** [November 3, 2022, 10:53am UTC](https://forum.alumio.com/t/how-to-map-with-dictionary-map/267 "2022-11-03T10:53:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alumio\_Bot](https://forum.alumio.com/user_avatar/forum.alumio.com/alumio_bot/32/1824_2.png) [@Alumio\_Bot](https://forum.alumio.com/u/Alumio_Bot)\
**Post date:** [November 3, 2022, 10:53am UTC](https://forum.alumio.com/t/how-to-map-with-dictionary-map/267/1 "2022-11-03T10:53:16Z")

</div>

### **Table Of Contents**

- Use case
- Video guide

### **Use case**

A Dictionary Map is a crucial mapper offered by Alumio to perform multiple mapping transformations on fields where the same comparator is used.

A viable example of Dictionary Map will be mapping a range of numbers to specific values. For instance, if you retrieve delivery dates between the days of 0 to 30, this mapper can be deployed to map them specifically for the values of 5, 8, 18, and 30.

### **Guide**

Here is a step-by-step guide to do that.

Step 1: Click on Add Data Transformer.

Step 2: Select Value Mapper.

Step 3: Within the Value Mapper, select Key Accessor from the Accessor drop-down list.

Step 4: Click on Add Keys and specify the key (or keys) that you wish to serialize from an entity data.

Step 5: Click on Add Mappers and select Dictionary Map.

Step 6: Click on Add Map and select a Comparator from the Comparator drop-down list. Subsequently, you can add as many maps as you wish.

Step 7: You can add multiple values as per the chosen Comparator

Step 7: On clicking the Run Test button, you will see that the dictionary Map mapper has mapped the values accordingly.

### **Video guide**

[![](https://alumio-forum.s3.dualstack.eu-central-1.amazonaws.com/uploads/original/1X/48cdc8517efa8b24fc5e4fa26bec2184370c1218.jpeg "Dictionary mapper") ](https://www.youtube.com/watch?v=rzcHb11ZO7Q)
