We use `@layers.setter` properties for this.

````python

@layers.setter
def layers(self, val):
    self._layers = val
````