'Get state parameters for this layer.
Returns:
varies: whatever data this model wants to receive in order to restore state'

def serialize(self):

    if self.has_params:
        return self.get_params()
