copyWith method

  1. @override
InitRequest copyWith({
  1. int? amount,
  2. String? orderId,
  3. String? ip,
  4. String? description,
  5. Language? language,
  6. String? recurrent,
  7. String? customerKey,
  8. String? redirectDueDate,
  9. String? notificationUrl,
  10. String? successUrl,
  11. String? failUrl,
  12. PayType? payType,
  13. Receipt? receipt,
  14. Map<String, String>? data,
  15. String? signToken,
})
override

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

Implementation

@override
InitRequest copyWith({
  int? amount,
  String? orderId,
  String? ip,
  String? description,
  Language? language,
  String? recurrent,
  String? customerKey,
  String? redirectDueDate,
  String? notificationUrl,
  String? successUrl,
  String? failUrl,
  PayType? payType,
  Receipt? receipt,
  Map<String, String>? data,
  String? signToken,
}) {
  return InitRequest(
    orderId: orderId ?? this.orderId,
    amount: amount ?? this.amount,
    ip: ip ?? this.ip,
    description: description ?? this.description,
    language: language ?? this.language,
    recurrent: recurrent ?? this.recurrent,
    customerKey: customerKey ?? this.customerKey,
    redirectDueDate: redirectDueDate ?? this.redirectDueDate,
    notificationUrl: notificationUrl ?? this.notificationUrl,
    successUrl: successUrl ?? this.successUrl,
    failUrl: failUrl ?? this.failUrl,
    payType: payType ?? this.payType,
    receipt: receipt ?? this.receipt,
    data: data ?? this.data,
    signToken: signToken ?? this.signToken,
  );
}