toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'currency': currency,
'price_parts': [for (final e in priceParts) e.toJson()],
'max_tip_amount': maxTipAmount,
'suggested_tip_amounts': suggestedTipAmounts,
'recurring_payment_terms_of_service_url':
recurringPaymentTermsOfServiceUrl,
'terms_of_service_url': termsOfServiceUrl,
'is_test': isTest,
'need_name': needName,
'need_phone_number': needPhoneNumber,
'need_email_address': needEmailAddress,
'need_shipping_address': needShippingAddress,
'send_phone_number_to_provider': sendPhoneNumberToProvider,
'send_email_address_to_provider': sendEmailAddressToProvider,
'is_flexible': isFlexible,
};