copyWith method
DeviceAdditionV2Body
copyWith({ - ConnectionTypeV2? connectionType,
- String? serialNumber,
- String? controllerPin,
- String? displayName,
- DeviceAddressV2? generatorAddress,
- String? homeownerFirstName,
- String? homeownerLastName,
- String? homeownerEmail,
- HomeownerConsentActionV2? homeownerConsentAction,
- String? homeownerSignature,
- bool? hasServiceAgreement,
- DateTime? serviceAgreementBeginDate,
- ServiceAgreementTermV2? serviceAgreementTerm,
- int? serviceAgreementTermMonths,
- int? serviceAgreementTermDays,
})
Implementation
DeviceAdditionV2Body copyWith(
{enums.ConnectionTypeV2? connectionType,
String? serialNumber,
String? controllerPin,
String? displayName,
DeviceAddressV2? generatorAddress,
String? homeownerFirstName,
String? homeownerLastName,
String? homeownerEmail,
enums.HomeownerConsentActionV2? homeownerConsentAction,
String? homeownerSignature,
bool? hasServiceAgreement,
DateTime? serviceAgreementBeginDate,
enums.ServiceAgreementTermV2? serviceAgreementTerm,
int? serviceAgreementTermMonths,
int? serviceAgreementTermDays}) {
return DeviceAdditionV2Body(
connectionType: connectionType ?? this.connectionType,
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,
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);
}