Custom data

Add custom data in ProductDetail model

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

  1. Receive your custom data in the network model NetworkProductDetail.
  2. Create a new implementation of Mapper<Any, Map<String, Any>>.
  3. 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:

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