add method
Adds the built Offer to the TikiSdk.offers list
Implementation
TikiSdk add() {
if (_ptr == null) {
throw ArgumentError("Set the Offer pointer record (ptr).");
}
if (_uses.isEmpty) {
throw ArgumentError("Add at lease one License use case to the Offer.");
}
if (_terms == null) {
throw ArgumentError("Set the offer terms.");
}
TikiSdk.instance.addOffer(this);
return TikiSdk.instance;
}