Custom data

Add custom data in CategoryTree model

To add custom data to the CategoryTree model you need to:

  1. Receive your custom data in the network model NetworkCategoryTree.
  2. Create a new implementation of Mapper<Any, Map<String, Any>>.
  3. Provide your new mapper via Koin using the name categoryTreeCustomMapToAnyMapperName.

Add custom data to Category Model

To add custom data to the Category model you need to:

  1. Receive your custom data in the network model NetworkCategory.
  2. Create a new implementation of Mapper<Any, Map<String, Any>>.
  3. Provide your new mapper via Koin using the name categoryCustomMapToAnyMapperName.