// resolve returns the resource value
resolve returns the resource value
// resolve returns the resource value
func (r *JsonResource) resolve() interface{} {
	switch r.resourceType {
	case TypeMap:
		return r.filter(r.resource.ToMap(r.ctx))
	case TypeArray:
		return r.resource.ToArray(r.ctx)
	case TypePaginator:
		return r.resource.ToPaginator(r.ctx)
	default:
		return r.resource
	}
}
func ( r * JsonResource ) resolve ( ) interface { } { switch r . resourceType { case TypeMap : return r . filter ( r . resource . ToMap ( r . ctx ) ) case TypeArray : return r . resource . ToArray ( r . ctx ) case TypePaginator : return r . resource . ToPaginator ( r . ctx ) default : return r . resource } }
resolve returns the resource value
resolve returns the resource value