toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'invoice',
if (extra != null) '@extra': extra,
'currency': currency,
'price_parts': price_parts,
'max_tip_amount': max_tip_amount,
'suggested_tip_amounts': suggested_tip_amounts,
'recurring_payment_terms_of_service_url':
recurring_payment_terms_of_service_url,
'terms_of_service_url': terms_of_service_url,
'is_test': is_test,
'need_name': need_name,
'need_phone_number': need_phone_number,
'need_email_address': need_email_address,
'need_shipping_address': need_shipping_address,
'send_phone_number_to_provider': send_phone_number_to_provider,
'send_email_address_to_provider': send_email_address_to_provider,
'is_flexible': is_flexible
};
}