toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    '__typename': 'DiscountIOS',
    'identifier': identifier,
    'localizedPrice': localizedPrice,
    'numberOfPeriods': numberOfPeriods,
    'paymentMode': paymentMode.toJson(),
    'price': price,
    'priceAmount': priceAmount,
    'subscriptionPeriod': subscriptionPeriod,
    'type': type,
  };
}