#NEWLINE# @ classmethod #NEWLINE# def to_dict( cls , instance , fields = None ) : #NEWLINE# #INDENT# 'Serialize instance to Python dict\n\n        :param instance: object (model) instance\n        :param fields: exact fields to serialize\n        :returns: serialized object (model) as dictionary\n        ' #NEWLINE# return cls . serializer . serialize ( fields , fields = fields )