JsonByPath class

Get and Set json values by key path

Constructors

JsonByPath([String splitChar = '.'])

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splitChar String
getter/setter pair

Methods

delete(Map<String, dynamic> target, String keyPath) Map<String, dynamic>
getValue<T>(Map<String, dynamic> target, String? keyPath, [T? defValue]) → T?
get value from an existing key by path returns null if some key does not exists
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setValue(Map<String, dynamic> target, String keyPath, dynamic value) Map<String, dynamic>
write value inside a key if key does not exists, it will be created
toString() String
A string representation of this object.
inherited

Operators

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