putJson method

Future<void> putJson(
  1. String path,
  2. Object? value
)

Writes value as JSON. Models are encoded through their toJson().

Implementation

Future<void> putJson(String path, Object? value) =>
    put(path, jsonEncode(value));