TransactionCreateResponse.fromResponse constructor

TransactionCreateResponse.fromResponse(
  1. Response response
)

Implementation

TransactionCreateResponse.fromResponse(Response response)
    : super.fromResponse(response) {
  if (response.statusCode == 201) {
    transaction = Transaction.fromJson(response.data);
  } else {
    validationError = response.data;
  }
}