FinancialTransactionResponse.fromMap constructor

FinancialTransactionResponse.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory FinancialTransactionResponse.fromMap(Map<String, dynamic> map) {
  return FinancialTransactionResponse(
    totalItems: map['totalItems'],
    items: List<Items>.from(map['items']?.map((x) => Items.fromMap(x))),
    transactions: List<TransactionsResponse>.from(map['transactions']?.map((x) => TransactionsResponse.fromMap(x))),
    total: Total.fromMap(map['total']),
  );
}