toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (pLCId != null) {
_json[r'PLC_id'] = pLCId;
}
if (host != null) {
_json[r'host'] = host;
}
if (port != null) {
_json[r'port'] = port;
}
if (unitID != null) {
_json[r'unitID'] = unitID;
}
_json[r'data_array'] = dataArray;
return _json;
}