copyWith method
Receipt
copyWith({
- String? email,
- String? phone,
- Taxation? taxation,
- List<
Items> ? items, - Payments? payments,
- String? ffdVersion,
- String? customer,
- String? customerInn,
- ClientInfo? clientInfo,
override
Создает экземпляр с заданными параметрами
Implementation
@override
Receipt copyWith({
String? email,
String? phone,
Taxation? taxation,
List<Items>? items,
Payments? payments,
String? ffdVersion,
String? customer,
String? customerInn,
ClientInfo? clientInfo,
}) {
return Receipt.all(
email: email ?? this.email,
phone: phone ?? this.phone,
taxation: taxation ?? this.taxation,
items: items ?? this.items,
payments: payments ?? this.payments,
ffdVersion: ffdVersion ?? this.ffdVersion,
customer: customer ?? this.customer,
customerInn: customerInn ?? this.customerInn,
clientInfo: clientInfo ?? this.clientInfo,
);
}