toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'__typename': 'SubscriptionOffer',
'basePlanIdAndroid': basePlanIdAndroid,
'currency': currency,
'displayPrice': displayPrice,
'id': id,
'keyIdentifierIOS': keyIdentifierIOS,
'localizedPriceIOS': localizedPriceIOS,
'nonceIOS': nonceIOS,
'numberOfPeriodsIOS': numberOfPeriodsIOS,
'offerTagsAndroid': offerTagsAndroid,
'offerTokenAndroid': offerTokenAndroid,
'paymentMode': paymentMode?.toJson(),
'period': period?.toJson(),
'periodCount': periodCount,
'price': price,
'pricingPhasesAndroid': pricingPhasesAndroid?.toJson(),
'signatureIOS': signatureIOS,
'timestampIOS': timestampIOS,
'type': type.toJson(),
};
}