Custom data
Add custom data in ProductDetail model
To add custom data to the ProductDetail
model you need to:
- Receive your custom data in the network model
NetworkProductDetail
. - Create a new implementation of
Mapper<Any, Map<String, Any>>
. - Provide your new mapper via Koin using the name
productDetailCustomMapToAnyMapperName
.
Add custom data in Variant model
To add custom data to the Variant
model you need to:
- Receive your custom data in the network model
NetworkVariant
. - Create a new implementation of
Mapper<Any, Map<String, Any>>
. - Provide your new mapper via Koin using the name
variantCustomMapToAnyMapperName
.