// newGenericJSONBase creates a new generic JSONBase from v, which must be an
// addressable/setable reflect.Value having the same fields as api.JSONBase.
// Returns an error if this isn't the case.
newGenericJSONBase creates a new generic JSONBase from v, which must be an
addressable/setable reflect.Value having the same fields as api.JSONBase.
Returns an error if this isn't the case.
// newGenericJSONBase creates a new generic JSONBase from v which must be an // addressable / setable reflect . Value having the same fields as api . JSONBase . // Returns an error if this isn ' t the case .
func newGenericJSONBase(v reflect.Value) (genericJSONBase, error) {
	g := genericJSONBase{}
	if err := fieldPtr(v, "ID", &g.id); err != nil {
		return g, err
	}
	if err := fieldPtr(v, "APIVersion", &g.apiVersion); err != nil {
		return g, err
	}
	if err := fieldPtr(v, "Kind", &g.kind); err != nil {
		return g, err
	}
	if err := fieldPtr(v, "ResourceVersion", &g.resourceVersion); err != nil {
		return g, err
	}
	if err := fieldPtr(v, "SelfLink", &g.selfLink); err != nil {
		return g, err
	}
	return g, nil
}
func newGenericJSONBase ( v reflect . Value ) ( genericJSONBase , error ) { g := genericJSONBase { } if err := fieldPtr ( v , " " , & g . id ) ; err != nil { return g , err } if err := fieldPtr ( v , " " , & g . apiVersion ) ; err != nil { return g , err } if err := fieldPtr ( v , " " , & g . kind ) ; err != nil { return g , err } if err := fieldPtr ( v , " " , & g . resourceVersion ) ; err != nil { return g , err } if err := fieldPtr ( v , " " , & g . selfLink ) ; err != nil { return g , err } return g , nil }
newGenericJSONBase creates a new generic JSONBase from v, which must be an
addressable/setable reflect.Value having the same fields as api.JSONBase.
newGenericJSONBase creates a new generic JSONBase from v which must be an addressable / setable reflect . Value having the same fields as api . JSONBase .