copyWith method

PaymentBillingInfo copyWith({
  1. String? billingName,
  2. String? street,
  3. String? zip,
  4. String? city,
  5. String? state,
  6. String? country,
  7. String? countryCode,
  8. String? companyName,
  9. String? vat,
  10. String? companyNumber,
  11. String? currency,
  12. int? id,
  13. int? isDefault,
  14. int? createdAt,
  15. int? updatedAt,
})

Implementation

PaymentBillingInfo copyWith({
  String? billingName,
  String? street,
  String? zip,
  String? city,
  String? state,
  String? country,
  String? countryCode,
  String? companyName,
  String? vat,
  String? companyNumber,
  String? currency,
  int? id,
  int? isDefault,
  int? createdAt,
  int? updatedAt,
}) =>
    PaymentBillingInfo(
      billingName: billingName ?? this.billingName,
      street: street ?? this.street,
      zip: zip ?? this.zip,
      city: city ?? this.city,
      state: state ?? this.state,
      country: country ?? this.country,
      countryCode: countryCode ?? this.countryCode,
      companyName: companyName ?? this.companyName,
      vat: vat ?? this.vat,
      companyNumber: companyNumber ?? this.companyNumber,
      currency: currency ?? this.currency,
      id: id ?? this.id,
      isDefault: isDefault ?? this.isDefault,
      createdAt: createdAt ?? this.createdAt,
      updatedAt: updatedAt ?? this.updatedAt,
    );