toMap method
Implementation
Map<String, dynamic> toMap() => {
"id": id,
"businessId": businessId,
"paymentLinkId": paymentLinkId,
"amount": amount,
"currency": currency,
"convertedAmount": convertedAmount,
"amountReceived": amountReceived,
"convertedCurrency": convertedCurrency,
"paymentMethods": paymentMethods == null ? [] : List<dynamic>.from(paymentMethods!.map((x) => x)),
"defaultPaymentMethod": defaultPaymentMethod,
"redirectUrl": redirectUrl,
"customUrl": customUrl,
"successMessage": successMessage,
"settlementDestination": settlementDestination,
"feeBearer": feeBearer,
"reference": reference,
"merchantReference": merchantReference,
"isDisabled": isDisabled,
"metadata": metadata,
"status": status,
"createdAt": createdAt?.toIso8601String(),
"updatedAt": updatedAt?.toIso8601String(),
"customer": customer?.toMap(),
"business": business?.toMap(),
};