copyWith method
Создает экземпляр с заданными параметрами
Implementation
@override
GooglePayRequest copyWith({
String? merchant,
String? orderNumber,
String? description,
String? language,
Map<String, dynamic>? additionalParameters,
bool? preAuth,
String? clientId,
String? paymentToken,
String? ip,
int? amount,
String? currencyCode,
String? email,
int? phone,
String? returnUrl,
String? failUrl,
}) {
return GooglePayRequest(
merchant: merchant ?? this.merchant,
orderNumber: orderNumber ?? this.orderNumber,
description: description ?? this.description,
language: language ?? this.language,
additionalParameters: additionalParameters ?? this.additionalParameters,
preAuth: preAuth ?? this.preAuth,
clientId: clientId ?? this.clientId,
paymentToken: paymentToken ?? this.paymentToken,
ip: ip ?? this.ip,
amount: amount ?? this.amount,
currencyCode: currencyCode ?? this.currencyCode,
email: email ?? this.email,
phone: phone ?? this.phone,
returnUrl: returnUrl ?? this.returnUrl,
failUrl: failUrl ?? this.failUrl,
);
}