serialize method

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

Implementation

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

  return element.uuid;
}