Transaction.fromV1 constructor
Transaction.fromV1(
- dynamic json
Implementation
factory Transaction.fromV1(dynamic json) {
return Transaction(
info: TransactionInfo(
txReference: json['tx_reference'],
identifier: json['identifier'],
paymentReference: json['payment_reference'],
dateTime: json['datetime'],
provider: providerFromPaymentMethod(json['payment_method']),
),
status: transactionStatusFromInt(int.tryParse(json['status'].toString())),
);
}