putJsonTyped method
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));