copyWith method

DeviceVerificationV2 copyWith({
  1. VerificationResultV2? serialNumber,
  2. VerificationResultV2? controllerPin,
  3. String? displayName,
  4. DeviceAddressV2? generatorAddress,
  5. String? homeownerFirstName,
  6. String? homeownerLastName,
  7. String? homeownerEmail,
  8. bool? hasHomeownerConsent,
})

Implementation

DeviceVerificationV2 copyWith(
    {enums.VerificationResultV2? serialNumber,
    enums.VerificationResultV2? controllerPin,
    String? displayName,
    DeviceAddressV2? generatorAddress,
    String? homeownerFirstName,
    String? homeownerLastName,
    String? homeownerEmail,
    bool? hasHomeownerConsent}) {
  return DeviceVerificationV2(
      serialNumber: serialNumber ?? this.serialNumber,
      controllerPin: controllerPin ?? this.controllerPin,
      displayName: displayName ?? this.displayName,
      generatorAddress: generatorAddress ?? this.generatorAddress,
      homeownerFirstName: homeownerFirstName ?? this.homeownerFirstName,
      homeownerLastName: homeownerLastName ?? this.homeownerLastName,
      homeownerEmail: homeownerEmail ?? this.homeownerEmail,
      hasHomeownerConsent: hasHomeownerConsent ?? this.hasHomeownerConsent);
}