toJson method

String toJson()

Converts a Serial to a JSON string. See constructor isolate for detials.

Implementation

String toJson() {
  return '{"path":"$path","baudrate":${baudrate.index},"databits":${databits.index},"parity":${parity.index},"stopbits":${stopbits.index},"xonxoff":$xonxoff,"rtsct":$rtsct,"handle":${_serialHandle.address}}';
}