code: func (n *NodeMode) UnmarshalJSON(b []byte) error {
  	var j string
  	err := json.Unmarshal(b, &j)
  	if err != nil {
  		return err
  	}
  	*n, err = NodeModeFromString(j)
  	return err
  }
docs: // UnmarshalJSON unmashals a NodeMode