Internal deserialize method for sifting out unacceptable data for the model

def _deserialize(self, data: dict, silent=True) -> dict:
        ''' Internal deserialize method for sifting out unacceptable data for the model '''
        deserialized_data = {}
        for name, field in self._fields.items():
            if field._readonly is False and name in data:
                deserialized_data[name] = data.get(name)
        return deserialized_data