json_async library

Functions

jsonDecodeAsync(String json) Future
Decodes a json string using Darts standard jsonDecode method. Whenever the platform supports it, the call will be executed in a long-running isolate.
jsonDecodeAsyncList<T>(String json) Future<List<T>>
Helper method that uses jsonDecodeAsync to decode the passed json string into a typed List.
jsonDecodeAsyncMap<T>(String json) Future<Map<String, T>>
Helper method that uses jsonDecodeAsync to decode the passed json string into a typed Map. Because JSON dictionaries can only contain string keys, the returned Map type is String,T.
jsonEncodeAsync(dynamic json) Future<String>
Decodes a json string using Darts standard jsonEncode method. Whenever the platform supports it, the call will be executed in a long-running isolate.