toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'domain': domain,
'status': status,
'reference': reference,
'receipt_number': receiptNumber,
'amount': amount,
'message': message,
'gateway_response': gatewayResponse,
'paid_at': paidAt,
'created_at': createdAt,
'channel': channel,
'currency': currency,
'ip_address': ipAddress,
'fees': fees,
'fees_split': feesSplit,
'authorization': authorization?.toJson(),
'customer': customer?.toJson(),
};
}