EdfaPgTransaction.fromJson constructor

EdfaPgTransaction.fromJson(
  1. dynamic json
)

Implementation

EdfaPgTransaction.fromJson(dynamic json) {
  date = json['date'];
  type = EdfaPgTransactionType.of(json['type'].toString());
  status = EdfaPgTransactionStatus.of(json['status'].toString());
  final am = json['amount'];

  if(am is num)
    amount = am.toDouble();
}