Entity constructor

Entity({
  1. EntityId? uid,
  2. Iterable<EntityId>? parents,
  3. Map<String, Value>? attributes,
})

Implementation

factory Entity({
  $0.EntityId? uid,
  $core.Iterable<$0.EntityId>? parents,
  $core.Map<$core.String, $1.Value>? attributes,
}) {
  final $result = create();
  if (uid != null) {
    $result.uid = uid;
  }
  if (parents != null) {
    $result.parents.addAll(parents);
  }
  if (attributes != null) {
    $result.attributes.addAll(attributes);
  }
  return $result;
}