protected static method
Implementation
static Async<TSharedProtectedJsonPod> protected(
String key, {
Map<String, Object>? initialValue,
}) {
final finalInitialValue = initialValue ?? const {};
return TSharedProtectedJsonPod.create(
key,
fromValue: (rawValue) => rawValue != null
? jsonDecode(rawValue) as Map<String, Object>
: finalInitialValue,
toValue: (value) => jsonEncode(value),
initialValue: finalInitialValue,
);
}