serializeAsync function

Future<String> serializeAsync(
  1. Object? value
)

Primarily intended for use in an isolate.

Implementation

Future<String> serializeAsync(Object? value) async =>
    value == null ? '' : json.encode(value);