allAdded method

Map<Object, Object?>? allAdded()

Implementation

Map<Object, Object?>? allAdded() {
  final thisNode = <Object, Object?>{};
  added.forEach((k, v) {
    thisNode[k] = v;
  });
  node.forEach((k, v) {
    final down = v.allAdded();
    if (down == null) {
      return;
    }
    thisNode[k] = down;
  });

  if (thisNode.isEmpty) {
    return null;
  }
  return thisNode;
}