fromJson static method

GetnetRefundResponse fromJson({
  1. required Map json,
})
override

Implementation

static GetnetRefundResponse fromJson({required Map json}) {
  return GetnetRefundResponse(
    result: json['result'],
    resultDetails: json['resultDetails'],
    amount: int.parse(json['amount']) / 100,
    gmtDateTime: json['gmtDateTime'],
    nsu: json['nsu'],
    nsuLastSuccesfullMessage: json['nsuLastSuccesfullMessage'],
    authorizationCode: json['authorizationCode'],
    cardBin: json['cardBin'],
    cardLastDigits: json['cardLastDigits'],
    refundTransactionDate: json['refundTransactionDate'],
    refundCvNumber: json['refundCvNumber'],
    refundOriginTerminal: json['refundOriginTerminal'],
    cardholderName: json['cardholderName'],
    splitPayloadResponse: json['splitPayloadResponse'],
    automationSlip: json['automationSlip'],
    callerId: 'no data for refund',
    receiptAlreadyPrinted: false,
    type: 'no data for refund',
    inputType: 'no data for refund',
  );
}