TransactionsResponse.fromJson constructor

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

Implementation

factory TransactionsResponse.fromJson(Map<String, dynamic> json) {
  return TransactionsResponse(
    code: json['code'],
    message: json['message'],
    data: json['data'] != null
        ? List<Transaction>.from(
            json['data'].map((x) => Transaction.fromJson(x)))
        : null,
    nextPageNumber: json['next_page'],
    count: json['count'],
  );
}