// Unmarshal unmarshals the REST component of a response in a REST service. func Unmarshal(r *service.Request) { if r.DataFilled() { v := reflect.Indirect(reflect.ValueOf(r.Data)) unmarshalBody(r, v) unmarshalLocationElements(r, v) } }