KnowledgeRelationship class final

One entry of a concept's relationships field.

Constructors

KnowledgeRelationship({required String relationship, required String resource})
const
KnowledgeRelationship.toConcept({required String relationship, required OkfConceptId target})
A relationship to the concept target, written as its bundle-relative path with each segment percent-encoded, such as /reporting/pdf-export.md.

Properties

hashCode → int
The hash code for this object.
no setterinherited
relationship → String
The relationship's name.
final
resource → String
What the relationship points at: a bundle path or a URI.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sameAs(Object? entry) → bool
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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