toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = {
'amount': amount,
'currency': currency,
'subject': subject,
'transaction_id': transactionId,
'custom': custom,
'body': body,
'bank_id': bankId,
'return_url': returnUrl,
'cancel_url': cancelUrl,
'picture_url': pictureUrl,
'notify_url': notifyUrl,
'contract_url': contractUrl,
'notify_api_version': notifyApiVersion,
'expires_date': expiresDate?.toIso8601String(),
'send_email': sendEmail,
'payer_name': payerName,
'payer_email': payerEmail,
'send_reminders': sendReminders,
'responsible_user_email': responsibleUserEmail,
'fixed_payer_personal_identifier': fixedPayerPersonalIdentifier,
'integrator_fee': integratorFee,
'collect_account_uuid': collectAccountUuid,
'confirm_timeout_date': confirmTimeoutDate?.toIso8601String(),
'mandatory_payment_method': mandatoryPaymentMethod,
'psp_client_merchant_name': pspClientMerchantName,
};
data.removeWhere((_, value) => value == null);
return data;
}