JsonUtility class final

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

expandFlattenedJson(Map<String, dynamic> input, {String separator = '.'}) Map<String, dynamic>
Expands a flattened JSON map, e.g. {'a.b': 1} to {a.b: 1, b: 1}.
expandJson(Map<String, dynamic> input, {String separator = '.'}) Map<String, dynamic>
Expands a Json map, e.g. {'a': {'b': 1}} to {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

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

i JsonUtility
final