code: func (d *JSONDecoder) DecodeHistory(data []byte) (*HistoryRequest, error) {
  	var p HistoryRequest
  	err := json.Unmarshal(data, &p)
  	if err != nil {
  		return nil, err
  	}
  	return &p, nil
  }
docs: // DecodeHistory ...