toGraph method

  1. @override
Map<String, dynamic> toGraph()
override

Converts this entity to a graph-like structure, including references to parents.

Implementation

@override
Map<String, dynamic> toGraph() {
  final graph = super.toGraph();
  graph['guid'] = guid;
  graph['init'] = init;
  graph['increment'] = increment;
  graph['sequence'] = sequence;
  graph['derive'] = derive;
  graph['length'] = length;
  graph['type'] = type?.toGraph();
  return graph;
}