copyWith method
Implementation
PaymentResponse copyWith({
bool? success,
String? message,
String? transactionId,
}) {
return PaymentResponse(
success: success ?? this.success,
message: message ?? this.message,
transactionId: transactionId ?? this.transactionId,
);
}