code: func (res *Resource) NewStruct() interface{} {
  	if res.Value == nil {
  		return nil
  	}
  	return reflect.New(utils.Indirect(reflect.ValueOf(res.Value)).Type()).Interface()
  }
docs: // NewStruct initialize a struct for the Resource