toJson method
Implementation
Map<String, dynamic> toJson() => {
'id': id,
'amount': amount,
'currency': currency,
'description': description,
'merchant_name': merchantName,
'merchant_id': merchantId,
'available_payment_methods': availablePaymentMethods
.map((method) => method.toJson())
.toList(),
'created_at': createdAt.toIso8601String(),
'expires_at': expiresAt?.toIso8601String(),
'metadata': metadata,
'payment_url': paymentUrl,
'show_user_info_form': showUserInfoForm,
'show_payment_method_form': showPaymentMethodForm,
'filling_info': fillingInfo,
};