TransactionsResponse.fromResponse constructor

TransactionsResponse.fromResponse(
  1. Response response
)

Implementation

TransactionsResponse.fromResponse(Response response)
    : super.fromResponse(response) {
  if (response.statusCode == 200) {
    transactions = (response.data as List<dynamic>)
        .map((offer) => Transaction.fromJson(offer))
        .toList();
  } else {
    validationError = response.data.toString();
  }
}