copyWith method

InProgressDeviceAdditionV3Body copyWith({
  1. String? serialNumber,
  2. String? displayName,
  3. AddressDTO? address,
  4. String? homeownerFirstName,
  5. String? homeownerLastName,
  6. String? homeownerEmail,
  7. bool? sendHomeownerEmail,
})

Implementation

InProgressDeviceAdditionV3Body copyWith(
    {String? serialNumber,
    String? displayName,
    AddressDTO? address,
    String? homeownerFirstName,
    String? homeownerLastName,
    String? homeownerEmail,
    bool? sendHomeownerEmail}) {
  return InProgressDeviceAdditionV3Body(
      serialNumber: serialNumber ?? this.serialNumber,
      displayName: displayName ?? this.displayName,
      address: address ?? this.address,
      homeownerFirstName: homeownerFirstName ?? this.homeownerFirstName,
      homeownerLastName: homeownerLastName ?? this.homeownerLastName,
      homeownerEmail: homeownerEmail ?? this.homeownerEmail,
      sendHomeownerEmail: sendHomeownerEmail ?? this.sendHomeownerEmail);
}