def __init__(self, *args):
        kwargs_possible_params = ['documents', 'document_names', 'errors']
        for param in kwargs_possible_params:
            if param in args[0]:
                self.add_property(param, args[0][param])
            else:
                self.add_property(param, None)
Dynamicaly initialising set of properties
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/apps/core/search.py/DMSSearchResponse.__init__