copyWith method

PaywayCheckTransactionResponse copyWith({
  1. int? status,
  2. String? description,
  3. double? amount,
  4. double? totalAmount,
  5. String? apv,
  6. String? paymentStatus,
  7. DateTime? datetime,
  8. ABATransactionCurrency? originalCurrency,
  9. List<Map>? payout,
  10. String? tranId,
  11. String? firstname,
  12. String? lastname,
  13. String? phone,
  14. String? email,
  15. String? paymentType,
})

Implementation

PaywayCheckTransactionResponse copyWith({
  int? status,
  String? description,
  double? amount,
  double? totalAmount,
  String? apv,
  String? paymentStatus,
  DateTime? datetime,
  ABATransactionCurrency? originalCurrency,
  List<Map<dynamic, dynamic>>? payout,
  String? tranId,
  String? firstname,
  String? lastname,
  String? phone,
  String? email,
  String? paymentType,
}) {
  return PaywayCheckTransactionResponse(
    status: status ?? this.status,
    description: description ?? this.description,
    amount: amount ?? this.amount,
    totalAmount: totalAmount ?? this.totalAmount,
    apv: apv ?? this.apv,
    paymentStatus: paymentStatus ?? this.paymentStatus,
    datetime: datetime ?? this.datetime,
    originalCurrency: originalCurrency ?? this.originalCurrency,
    payout: payout ?? this.payout,
    tranId: tranId ?? this.tranId,
    firstname: firstname ?? this.firstname,
    lastname: lastname ?? this.lastname,
    phone: phone ?? this.phone,
    email: email ?? this.email,
    paymentType: paymentType ?? this.paymentType,
  );
}