ApiResponse.fromJson constructor

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

Implementation

factory ApiResponse.fromJson(Map<String, dynamic> json) {
  return ApiResponse(
    total: json['total'],
    pageSize: json['page_size'],
    page: json['page'],
    cursor: json['cursor'],
    result: List<Transaction>.from(json['result'].map((x) => Transaction.fromJson(x))),
  );
}