Data.fromJson constructor

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

Implementation

factory Data.fromJson(Map<String, dynamic> json) => Data(
      totalPages: json["totalPages"],
      transactions: List<Transaction>.from(
          json["transactions"].map((x) => Transaction.fromJson(x))),
    );