asMap method

Map asMap()

The function returns a map with a key and value based on the promotion identifier key and value.

Implementation

Map asMap() => {
      'key': key.promotionIdentifierKeyAsString(),
      'value': value,
    };