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