copyWith method

  1. @override
DeclineRequest copyWith({
  1. String? merchantLogin,
  2. String? language,
  3. String? orderId,
  4. String? orderNumber,
})

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

Implementation

@override
DeclineRequest copyWith({
  String? merchantLogin,
  String? language,
  String? orderId,
  String? orderNumber,
}) {
  return DeclineRequest(
    merchantLogin: merchantLogin ?? this.merchantLogin,
    language: language ?? this.language,
    orderId: orderId ?? this.orderId,
    orderNumber: orderNumber ?? this.orderNumber,
  );
}