copyWith method

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

Implementation

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