copyWith method

DealerDeviceAdditionV3Body copyWith({
  1. ConnectionTypeDTO? connectionType,
  2. String? serialNumber,
  3. String? controllerPin,
  4. String? displayName,
  5. AddressDTO? address,
  6. String? homeownerFirstName,
  7. String? homeownerLastName,
  8. String? homeownerEmail,
  9. HomeownerConsentActionDTO? homeownerConsentAction,
  10. String? homeownerSignature,
  11. bool? hasServiceAgreement,
  12. DateTime? serviceAgreementBeginDate,
  13. ServiceAgreementTermDTO? serviceAgreementTerm,
  14. int? serviceAgreementTermMonths,
  15. int? serviceAgreementTermDays,
})

Implementation

DealerDeviceAdditionV3Body copyWith(
    {enums.ConnectionTypeDTO? connectionType,
    String? serialNumber,
    String? controllerPin,
    String? displayName,
    AddressDTO? address,
    String? homeownerFirstName,
    String? homeownerLastName,
    String? homeownerEmail,
    enums.HomeownerConsentActionDTO? homeownerConsentAction,
    String? homeownerSignature,
    bool? hasServiceAgreement,
    DateTime? serviceAgreementBeginDate,
    enums.ServiceAgreementTermDTO? serviceAgreementTerm,
    int? serviceAgreementTermMonths,
    int? serviceAgreementTermDays}) {
  return DealerDeviceAdditionV3Body(
      connectionType: connectionType ?? this.connectionType,
      serialNumber: serialNumber ?? this.serialNumber,
      controllerPin: controllerPin ?? this.controllerPin,
      displayName: displayName ?? this.displayName,
      address: address ?? this.address,
      homeownerFirstName: homeownerFirstName ?? this.homeownerFirstName,
      homeownerLastName: homeownerLastName ?? this.homeownerLastName,
      homeownerEmail: homeownerEmail ?? this.homeownerEmail,
      homeownerConsentAction:
          homeownerConsentAction ?? this.homeownerConsentAction,
      homeownerSignature: homeownerSignature ?? this.homeownerSignature,
      hasServiceAgreement: hasServiceAgreement ?? this.hasServiceAgreement,
      serviceAgreementBeginDate:
          serviceAgreementBeginDate ?? this.serviceAgreementBeginDate,
      serviceAgreementTerm: serviceAgreementTerm ?? this.serviceAgreementTerm,
      serviceAgreementTermMonths:
          serviceAgreementTermMonths ?? this.serviceAgreementTermMonths,
      serviceAgreementTermDays:
          serviceAgreementTermDays ?? this.serviceAgreementTermDays);
}