JsonPath<T> class Null safety

Represents a json-pointer - can be used to do json-pointer operations on MModel instances.

T represents the type of data expected at this pointer

Inheritance
Available Extensions

Constructors

JsonPath.fromJson(dynamic json)
factory
JsonPath.internal(List<String>? _segments, String path)
const
JsonPath.of(dynamic from, {JsonPath? relativeTo})
factory
JsonPath.parsed(String value, {JsonPath? relativeTo})
factory
JsonPath.root()
const
JsonPath.segments(List<String> segments)
JsonPath.single(String single)
const

Properties

chop JsonPath
Returns an immutable copy of this path, with the last path segment removed
read-only
diffHashCode int
read-only, inherited
diffKey String
read-only, inherited
diffSource → dynamic
read-only, inherited
equalityHashCode int
read-only, inherited
first String
The first segment in the path
read-only
hashCode int
The hash code for this object.
read-only, inherited
isKnown bool
read-only, inherited
last String
The last segment in the path
read-only
length int
read-only
path String
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
segments List<String>
read-only
value String
final, inherited

Methods

cast<TT>() JsonPath<TT>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
relativize<TT>(JsonPath other) JsonPath<TT>
startsWith(JsonPath otherPath) bool
Whether this path starts with another JsonPath instance.
toJson() → dynamic
toKey() String
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) → dynamic

Constants

Root → const JsonPath
JsonPath._([], "/")