Edge constructor

Edge(
  1. Edge response,
  2. dynamic client
)

Creates an Edge from a protobuf response.

Implementation

Edge(pb.Edge response, dynamic client) : super(client) {
  sourceKref = Kref(response.sourceKref.uri);
  targetKref = Kref(response.targetKref.uri);
  edgeType = response.edgeType;
  createdAt = response.createdAt.isEmpty ? null : response.createdAt;
  author = response.author;
  metadata = Map<String, String>.from(response.metadata);
  username = response.username;
}