addOffer method

TikiSdk addOffer(
  1. Offer offer
)

Adds an Offer object to the offers map, using its ID as the key.

The Offer object is added to the offers mao with its ID as the key. If an offer with the same ID already exists in the dictionary, it will be overwritten by the new offer.

Implementation

TikiSdk addOffer(Offer offer) {
  _offers[offer.getId] = offer;
  return TikiSdk.instance;
}