EdfaPgTransactionDetailsSuccess.fromJson constructor

EdfaPgTransactionDetailsSuccess.fromJson(
  1. dynamic json
)

Implementation

EdfaPgTransactionDetailsSuccess.fromJson(dynamic json) : super.fromJson(json) {
  declineReason = json['decline_reason'];
  name = json['name'];
  mail = json['mail'];
  ip = json['ip'];
  card = json['card'];

  if (json['transactions'] != null) {
    transactions = [];
    json['transactions'].forEach((v) {
      transactions.add(EdfaPgTransaction.fromJson(v));
    });
  }
}