How clone a object and/or serialize?

is possible “clone” an object (same type)?
is possible serialize a an object and rebuild using this “meta data”?

thanks for all!

In modern versions of LVGL (v8 and later), direct cloning/duplicating of UI objects is not natively supported. While earlier versions (such as v6) allowed passing a copy template to lv_obj_create

Recommended practice: Extract your object creation and styling code into a reusable helper function or define a custom composite widget so you can call it multiple times to instantiate similar objects.

Note that you can copy styles independently using lv_style_copy(dst, src) [lv_style_copy] or duplicate draw buffers using lv_draw_buf_dup() [lv_draw_buf_dup], but full UI objects cannot be cloned directly.