copyWith method
DealerDeviceAdditionV3Body
copyWith({ - ConnectionTypeDTO? connectionType,
- String? serialNumber,
- String? controllerPin,
- String? displayName,
- AddressDTO? address,
- String? homeownerFirstName,
- String? homeownerLastName,
- String? homeownerEmail,
- HomeownerConsentActionDTO? homeownerConsentAction,
- String? homeownerSignature,
- bool? hasServiceAgreement,
- DateTime? serviceAgreementBeginDate,
- ServiceAgreementTermDTO? serviceAgreementTerm,
- int? serviceAgreementTermMonths,
- 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);
}