code: func (e *Entity) Map() map[string]interface{} {
  	values := make(map[string]interface{})
  	for _, fp := range e.class.getFieldPaths(newFieldPath(), e.state) {
  		values[e.class.getNameForFieldPath(fp)] = e.state.get(fp)
  	}
  	return values
  }
docs: // Map returns a map of current entity state as key-value pairs