encode method

Future<String> encode(
  1. Object? json
)

Implementation

Future<String> encode(Object? json) async {
  if (!_createdIsolate.isCompleted) {
    if (!_hasStartedInitialize) initialize();
    await _createdIsolate.future;
  }
  _sendPort.send([json, true]);
  return _handleRes(await _events.next);
}