copyWith method

DeviceVerificationDTO copyWith({
  1. VerificationResultDTO? serialNumber,
  2. VerificationResultDTO? controllerPin,
  3. String? displayName,
  4. AddressDTO? address,
  5. bool? hasHomeownerConsent,
})

Implementation

DeviceVerificationDTO copyWith(
    {enums.VerificationResultDTO? serialNumber,
    enums.VerificationResultDTO? controllerPin,
    String? displayName,
    AddressDTO? address,
    bool? hasHomeownerConsent}) {
  return DeviceVerificationDTO(
      serialNumber: serialNumber ?? this.serialNumber,
      controllerPin: controllerPin ?? this.controllerPin,
      displayName: displayName ?? this.displayName,
      address: address ?? this.address,
      hasHomeownerConsent: hasHomeownerConsent ?? this.hasHomeownerConsent);
}