toJson method
Implementation
@override
Map<String, dynamic> toJson() => <String, dynamic>{
'currency': currency,
'price_parts': priceParts.map((item) => item.toJson()).toList(),
'subscription_period': subscriptionPeriod,
'max_tip_amount': maxTipAmount,
'suggested_tip_amounts': suggestedTipAmounts.map((item) => item).toList(),
'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,
'@type': constructor,
};