toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'cancelUrl': cancelUrl,
'nonce': nonce,
'phone': phone,
'email': email,
'errorUrl': errorUrl,
'notifyUrl': notifyUrl,
'successUrl': successUrl,
'paymentMethods': paymentMethods,
'expireDate': expireDate,
'items': items.map((item) => item.toJson()).toList(),
'beneficiaries': beneficiaries.map((beneficiary) => beneficiary.toJson()).toList(),
'lang': lang,
};
}