Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
expandFlattenedJson (Map <String , dynamic > input , {String separator = '.' })
→ Map <String , dynamic >
Adds a shortened alias key for every path suffix of every key in a
flattened map, so a leaf can also be looked up by the tail of its path:
{'a.b.c': 1} becomes {'a.b.c': 1, 'b.c': 1, 'c': 1}.
expandJson (Map <String , dynamic > input , {String separator = '.' })
→ Map <String , dynamic >
Flattens input with flattenJson , then adds a shortened alias key for
every path suffix, as expandFlattenedJson does:
{'a': {'b': 1}} becomes {'a.b': 1, 'b': 1}.
flattenJson (Map <String , dynamic > input , {String separator = '.' })
→ Map <String , dynamic >
Flattens a nested JSON object into a single-level map with string keys.
mapToJson <T1 , T2 > (Map <T1 , T2 > input , {Set <Type > typesAllowed = const {} , String ? keyConverter (dynamic )? })
→ Map <String , dynamic >
Converts a map to a Json map by recursively converting its keys and values
to Json compatible types.
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
unflattenJson (Map <String , dynamic > input , {String separator = '.' })
→ Map <String , dynamic >
Rebuilds nested maps from a flattened map, the inverse of flattenJson
for nested maps: {'a.b': 1, 'a.c': 2} becomes
{'a': {'b': 1, 'c': 2}}.