code: func (tc *TelegrafConfig) UnmarshalJSON(b []byte) error {
  	tcd := new(telegrafConfigDecode)
  	if err := json.Unmarshal(b, tcd); err != nil {
  		return err
  	}
  	*tc = TelegrafConfig{
  		ID:             tcd.ID,
  		OrganizationID: tcd.OrganizationID,
  		Name:           tcd.Name,
  		Agent:          tcd.Agent,
  		Plugins:        make([]TelegrafPlugin, len(tcd.Plugins)),
  	}
  	return decodePluginRaw(tcd, tc)
  }
docs: // UnmarshalJSON implement the json.Unmarshaler interface.