TransactionRefunds.fromJson constructor

TransactionRefunds.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory TransactionRefunds.fromJson(Map<String, dynamic> json) =>
    TransactionRefunds(
        json['amount_refunded'],
        json['amount_fee'],
        (json['payments'] as List)
            .map((e) => TransactionRefundPayment.fromJson(e))
            .toList());