map property

Map<String, dynamic> get map

A getter that converts the PaymentSDKCardDiscount object's data into a map.

It returns a map with the keys pt_discount_cards, pt_discount_value, pt_discount_title, and pt_is_percentage.

Implementation

Map<String, dynamic> get map {
  return {
    pt_discount_cards: this.discountCards,
    pt_discount_value: this.discountValue,
    pt_discount_title: this.discountTitle,
    pt_is_percentage: this.isPercentage,
  };
}