mappings top-level constant

Map<String, PropertyMapper> const mappings

Implementation

const Map<String, PropertyMapper> mappings = {
  "total": PropertyMapper("value"),
  "products": PropertyMapper("items", fromJson: itemsFromJson),
  "name": PropertyMapper("itemName"),
  "product_id": PropertyMapper("itemId"),
  "productId": PropertyMapper("itemId"),
  "query": PropertyMapper("searchTerm"),
  "share_via": PropertyMapper("method"),
  "category": PropertyMapper("contentType")
};