Django API

Hi I am stuck with decorator I am not getting why should I use Decorator for serialization in Django

A decorator property allows the serialization of an object to be split up across smaller units as independent functions. In contrast to jamming a bunch of logic in the constructor or one single method to serialize the object.