GraphNode class

Constructors

GraphNode({String? id, String? name, String? project, String? title, String? type})
Returns a new GraphNode instance.

Properties

hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
"
getter/setter pair
name ↔ String?
the document name (empty for synthetic nodes)
getter/setter pair
project ↔ String?
Project is the project scope the underlying document was saved under. Absent for a document saved with none, and for the synthetic nodes — unresolved link targets and connectors belong to no project. When ?project= narrows the graph, every page, memory and source node carries that value.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title ↔ String?
display label
getter/setter pair
type ↔ String?
kb-page | kb-memory | kb-source | kb-connector | unresolved
getter/setter pair

Methods

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

Operators

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

Static Methods

fromJson(dynamic value) → GraphNode?
Returns a new GraphNode instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<GraphNode>
mapFromJson(dynamic json) → Map<String, GraphNode>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<GraphNode>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.