package rest

import 
PayloadMember returns the payload field member of i if there is one, or nil.
func ( interface{}) interface{} {
	if  == nil {
		return nil
	}

	 := reflect.ValueOf().Elem()
	if !.IsValid() {
		return nil
	}
	if ,  := .Type().FieldByName("_");  {
		if  := .Tag.Get("payload");  != "" {
			,  := .Type().FieldByName()
			if .Tag.Get("type") != "structure" {
				return nil
			}

			 := .FieldByName()
			if .IsValid() || (.Kind() == reflect.Ptr && !.IsNil()) {
				return .Interface()
			}
		}
	}
	return nil
}
PayloadType returns the type of a payload field member of i if there is one, or "".
func ( interface{}) string {
	 := reflect.Indirect(reflect.ValueOf())
	if !.IsValid() {
		return ""
	}
	if ,  := .Type().FieldByName("_");  {
		if  := .Tag.Get("payload");  != "" {
			if ,  := .Type().FieldByName();  {
				return .Tag.Get("type")
			}
		}
	}
	return ""