TransactionsResponse.fromJson constructor

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

Implementation

factory TransactionsResponse.fromJson(Map<String, dynamic> json) {
  var list = json['rows'] as List;
  List<Transaction>? transactions =
      list.isEmpty ? null : list.map((i) => Transaction.fromJson(i)).toList();

  return TransactionsResponse(
    transactions: transactions,
    count: json['count'],
  );
}