code: func Decode(context *qor.Context, result interface{}, res Resourcer) error {
  	var errors qor.Errors
  	var err error
  	var metaValues *MetaValues
  	metaors := res.GetMetas([]string{})
  
  	if strings.Contains(context.Request.Header.Get("Content-Type"), "json") {
  		metaValues, err = ConvertJSONToMetaValues(context.Request.Body, metaors)
  		context.Request.Body.Close()
  	} else {
  		metaValues, err = ConvertFormToMetaValues(context.Request, metaors, "QorResource.")
  	}
  
  	errors.AddError(err)
  	errors.AddError(DecodeToResource(res, result, metaValues, context).Start())
  	return errors
  }
docs: // Decode decode context to result according to resource definition