toJson method
Implementation
@override
Map<String, dynamic> toJson([dynamic extra]) {
return {
"@type": CONSTRUCTOR,
"currency": currency,
"price_parts": priceParts.map((i) => i.toJson()).toList(),
"max_tip_amount": maxTipAmount,
"suggested_tip_amounts": suggestedTipAmounts.map((i) => i).toList(),
"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,
};
}