copyWith method

DealerOrgDTO copyWith({
  1. int? id,
  2. String? businessPartnerNo,
  3. String? name,
  4. String? e164PhoneNumber,
  5. String? displayPhoneNumber,
  6. String? wizardStep,
  7. bool? wizardComplete,
  8. AddressDTO? address,
  9. int? userCount,
  10. int? technicianCount,
  11. int? deviceCount,
  12. List<String>? adminEmails,
})

Implementation

DealerOrgDTO copyWith(
    {int? id,
    String? businessPartnerNo,
    String? name,
    String? e164PhoneNumber,
    String? displayPhoneNumber,
    String? wizardStep,
    bool? wizardComplete,
    AddressDTO? address,
    int? userCount,
    int? technicianCount,
    int? deviceCount,
    List<String>? adminEmails}) {
  return DealerOrgDTO(
      id: id ?? this.id,
      businessPartnerNo: businessPartnerNo ?? this.businessPartnerNo,
      name: name ?? this.name,
      e164PhoneNumber: e164PhoneNumber ?? this.e164PhoneNumber,
      displayPhoneNumber: displayPhoneNumber ?? this.displayPhoneNumber,
      wizardStep: wizardStep ?? this.wizardStep,
      wizardComplete: wizardComplete ?? this.wizardComplete,
      address: address ?? this.address,
      userCount: userCount ?? this.userCount,
      technicianCount: technicianCount ?? this.technicianCount,
      deviceCount: deviceCount ?? this.deviceCount,
      adminEmails: adminEmails ?? this.adminEmails);
}