toJson method

  1. @override
Map<String, dynamic> toJson()
override

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'premiumPaymentOption',
    if (extra != null) '@extra': extra,
    'currency': currency,
    'amount': amount,
    'discount_percentage': discount_percentage,
    'month_count': month_count,
    'store_product_id': store_product_id,
    'payment_link': payment_link
  };
}