code: def _get_state_of_serializeable_fields(self, klass, state):
          
          for field in SerializableMixIn._get_serialize_fields(klass):
              # only try to get fields, we actually have.
              if hasattr(self, field):
                  if _debug and field in state:
                      logger.debug('field "%s" already in state!', field)
                  state[field] = getattr(self, field)
          return state
docs: :return a dictionary {k:v} for k in self.serialize_fields and v=getattr(self, k)