Edge constructor

Edge({
  1. required int fromVertexId,
  2. required int toVertexId,
  3. int? id,
  4. Set<String>? labels,
  5. Map<String, dynamic>? properties,
  6. DateTime? createdAt,
  7. DateTime? updatedAt,
})

Implementation

factory Edge({
  required int fromVertexId,
  required int toVertexId,
  int? id,
  Set<String>? labels,
  Map<String, dynamic>? properties,
  DateTime? createdAt,
  DateTime? updatedAt,
}) {
  return EdgeImpl(
    id: id,
    fromVertexId: fromVertexId,
    toVertexId: toVertexId,
    labels: labels ?? {},
    properties: properties ?? {},
    createdAt: createdAt,
    updatedAt: updatedAt,
  );
}