plugin/content/serialization library
Functions
-
listFromJson<
T extends SchemaItem> (dynamic json) → List< T> ? -
Converts a JSON list to a nullable-list of SchemaItem instances of type
T
. -
readValue(
dynamic json, String key) → Object? - Reads a value from a JSON object using the provided key.
-
setUnknownPlaceholderFactory(
UnknownPlaceholderFactory factory) → void - Sets the factory for creating unknown placeholders.
-
typeFromFirstOfListJson<
T extends SchemaItem> (dynamic json) → T? -
Converts a JSON object to a nullable-instance of SchemaItem of type
T
.
Typedefs
-
UnknownPlaceholderFactory
= SchemaItem? Function(Type type, String missingSchemaType, Map<
String, dynamic> jsonPayload) - Factory function for creating unknown placeholders for different types. This is set by the extension_content package to provide unknown placeholders for ActionConfiguration, ConditionConfiguration, etc.