copyWith method

  1. @override
RefundRequest copyWith({
  1. int? amount,
  2. String? orderId,
  3. Map<String, dynamic>? jsonParams,
})

Создает экземпляр с заданными параметрами

Implementation

@override
RefundRequest copyWith({
  int? amount,
  String? orderId,
  Map<String, dynamic>? jsonParams,
}) {
  return RefundRequest(
    amount: amount ?? this.amount,
    orderId: orderId ?? this.orderId,
    jsonParams: jsonParams ?? this.jsonParams,
  );
}