toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'id': id,
    'type': SubscriptionOfferTypeConverter.toStringValue(type),
    'offerPeriodCount': offerPeriodCount,
    'price': price,
    'displayPrice': displayPrice,
    'paymentMode': SubscriptionOfferPaymentModeConverter.toStringValue(
      paymentMode,
    ),
    'periodCount': periodCount,
    'periodUnit': SubscriptionPeriodUnitConverter.toStringValue(periodUnit),
  };
}