copyWith method
- int? id,
- String? serialNumber,
- String? displayName,
- AddressDTO? address,
- bool? hasServiceAgreement,
- ConnectionTypeDTO? connectionType,
Implementation
DeviceDataDTO copyWith(
{int? id,
String? serialNumber,
String? displayName,
AddressDTO? address,
bool? hasServiceAgreement,
enums.ConnectionTypeDTO? connectionType}) {
return DeviceDataDTO(
id: id ?? this.id,
serialNumber: serialNumber ?? this.serialNumber,
displayName: displayName ?? this.displayName,
address: address ?? this.address,
hasServiceAgreement: hasServiceAgreement ?? this.hasServiceAgreement,
connectionType: connectionType ?? this.connectionType);
}