serialize method

dynamic serialize(
  1. Map<String, dynamic> library,
  2. dynamic element,
  3. Object3dMeta? meta
)

Implementation

serialize(Map<String, dynamic> library, dynamic element, Object3dMeta? meta) {
  if (library[element.uuid] == null) {
    library[element.uuid] = element.toJSON(meta: meta);
  }

  return element.uuid;
}