putJsonTyped method

  1. @protected
Future<void> putJsonTyped(
  1. String key,
  2. Map<String, Object?> json
)
inherited

Saves the structure by key. Important for use, pass it sterilized to Map<String, Object?>

Example:

await putJsonTyped("your key", taskModel.toJson());

Implementation

@protected
Future<void> putJsonTyped(
  String key,
  Map<String, Object?> json,
) =>
    put(key: key, value: jsonEncode(json));