package encoding12// field represents a value in river.3type field struct {4Name string `json:"name,omitempty"`5Type string `json:"type,omitempty"`6Value interface{} `json:"value,omitempty"`7}89// valueField represents a value in river.10type valueField struct {11Type string `json:"type,omitempty"`12Value interface{} `json:"value,omitempty"`13}1415func (vf *valueField) hasValue() bool {16if vf == nil {17return false18}19return vf.Value != nil20}2122// keyField represents a map backed field.23type keyField struct {24field `json:",omitempty"`25Key string `json:"key,omitempty"`26}272829