copyWith method
Implementation
ModbusSerialConnectionDTO copyWith(
{String? name,
int? baudRate,
enums.ParityDTO? parity,
int? dataBits,
enums.StopBitsDTO? stopBits,
int? unitId,
String? propertySpec}) {
return ModbusSerialConnectionDTO(
name: name ?? this.name,
baudRate: baudRate ?? this.baudRate,
parity: parity ?? this.parity,
dataBits: dataBits ?? this.dataBits,
stopBits: stopBits ?? this.stopBits,
unitId: unitId ?? this.unitId,
propertySpec: propertySpec ?? this.propertySpec);
}