toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'premiumStatePaymentOption',
    if (extra != null) '@extra': extra,
    'payment_option': payment_option,
    'is_current': is_current,
    'is_upgrade': is_upgrade,
    'last_transaction_id': last_transaction_id
  };
}