copyWith method

  1. @override
Receipt copyWith({
  1. String? email,
  2. String? phone,
  3. Taxation? taxation,
  4. List<Items>? items,
  5. Payments? payments,
  6. String? ffdVersion,
  7. String? customer,
  8. String? customerInn,
  9. 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,
  );
}