copyWithWrapped method
Implementation
ModbusSerialConnectionDTO copyWithWrapped(
{Wrapped<String?>? name,
Wrapped<int?>? baudRate,
Wrapped<enums.ParityDTO?>? parity,
Wrapped<int?>? dataBits,
Wrapped<enums.StopBitsDTO?>? stopBits,
Wrapped<int?>? unitId,
Wrapped<String?>? propertySpec}) {
return ModbusSerialConnectionDTO(
name: (name != null ? name.value : this.name),
baudRate: (baudRate != null ? baudRate.value : this.baudRate),
parity: (parity != null ? parity.value : this.parity),
dataBits: (dataBits != null ? dataBits.value : this.dataBits),
stopBits: (stopBits != null ? stopBits.value : this.stopBits),
unitId: (unitId != null ? unitId.value : this.unitId),
propertySpec:
(propertySpec != null ? propertySpec.value : this.propertySpec));
}