Custom data
Add custom data in CategoryTree model
To add custom data to the CategoryTree
model you need to:
- Receive your custom data in the network model
NetworkCategoryTree
. - Create a new implementation of
Mapper<Any, Map<String, Any>>
. - 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:
- Receive your custom data in the network model
NetworkCategory
. - Create a new implementation of
Mapper<Any, Map<String, Any>>
. - Provide your new mapper via Koin using the name
categoryCustomMapToAnyMapperName
.