Restores the layers array from imported data, ensuring each item
conforms to the DucLayer type.
This function deeply validates each layer, including its nested 'overrides'
for default stroke and background styles. It provides safe defaults for any
missing or invalid properties.
Restores the layers array from imported data, ensuring each item conforms to the DucLayer type.
This function deeply validates each layer, including its nested 'overrides' for default stroke and background styles. It provides safe defaults for any missing or invalid properties.