Serial.isolate constructor
Serial.isolate(
- String json
Duplicates an existing Serial from a JSON string. This special constructor is used to transfer an existing GPIO to an other isolate.
Implementation
Serial.isolate(String json)
: path = _jsonMap(json)['path'] as String,
baudrate = Baudrate.values[_jsonMap(json)['baudrate'] as int],
databits = DataBits.values[_jsonMap(json)['databits'] as int],
stopbits = StopBits.values[_jsonMap(json)['stopbits'] as int],
parity = Parity.values[_jsonMap(json)['parity'] as int],
rtsct = _jsonMap(json)['rtsct'] as bool,
xonxoff = _jsonMap(json)['xonxoff'] as bool,
_serialHandle =
Pointer<Void>.fromAddress(_jsonMap(json)['handle'] as int);