toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'accessUrl': accessUrl,
'amount': amount,
'balanceTransactionId': balanceTransactionId,
'billing': billing?.toMap(),
'currency': currency,
'description': description,
'disputed': disputed,
'externalReferenceNumber': externalReferenceNumber,
'fee': fee,
'foreignFee': foreignFee,
'livemode': livemode,
'netAmount': netAmount,
'origin': origin,
'paymentIntentId': paymentIntentId,
'payout': payout,
'source': source?.toMap(),
'statementDescriptor': statementDescriptor,
'status': status,
'taxAmount': taxAmount,
'refunds': refunds?.map((x) => x.toMap()).toList(),
'taxes': taxes?.map((x) => x.toMap()).toList(),
'availableAt': availableAt?.millisecondsSinceEpoch,
'createdAt': createdAt?.millisecondsSinceEpoch,
'paidAt': paidAt?.millisecondsSinceEpoch,
'updatedAt': updatedAt?.millisecondsSinceEpoch,
};
}