RefundResponseAttributes.fromMap constructor
RefundResponseAttributes.fromMap(
- Map<String, dynamic> map
)
Implementation
factory RefundResponseAttributes.fromMap(Map<String, dynamic> map) {
return RefundResponseAttributes(
amount: map['amount']?.toInt() ?? 0,
currency: map['currency'] ?? '',
livemode: map['livemode'] ?? false,
notes: map['notes'],
paymentId: map['payment_id'] ?? '',
payoutId: map['payout_id'],
reason: map['reason'] ?? '',
status: map['status'] ?? '',
createdAt: fromTimeStamp(map['created_at']),
updatedAt: fromTimeStamp(map['updated_at']),
balanceTransactionId: map['balance_transaction_id'],
);
}