copyWith method

Data copyWith({
  1. String? message,
  2. String? txnId,
  3. String? statusCode,
  4. num? amount,
  5. num? createdDate,
  6. String? txnNumber,
  7. String? paymentMethod,
  8. String? uniqueTxnId,
})

Implementation

Data copyWith({  String? message,
  String? txnId,
  String? statusCode,
  num? amount,
  num? createdDate,
  String? txnNumber,
  String? paymentMethod,
  String? uniqueTxnId,
}) => Data(  message: message ?? _message,
  txnId: txnId ?? _txnId,
  statusCode: statusCode ?? _statusCode,
  amount: amount ?? _amount,
  createdDate: createdDate ?? _createdDate,
  txnNumber: txnNumber ?? _txnNumber,
  paymentMethod: paymentMethod ?? _paymentMethod,
  uniqueTxnId: uniqueTxnId ?? _uniqueTxnId,
);