func loadEntity(dst interface{}, src *pb.EntityProto) (err error) {
	ent, err := protoToEntity(src)
	if err != nil {
		return err
	}
	if e, ok := dst.(PropertyLoadSaver); ok {
		return e.Load(ent.Properties)
	}
	return LoadStruct(dst, ent.Properties)
}
func loadEntity(dst interface{}, src *pb.EntityProto) (err error) {
	ent, err := protoToEntity(src)
	if err != nil {
		return err
	}
	if e, ok := dst.(PropertyLoadSaver); ok {
		return e.Load(ent.Properties)
	}
	return LoadStruct(dst, ent.Properties)
}
func loadEntity ( dst interface { } , src * pb . EntityProto ) ( err error ) { ent , err := protoToEntity ( src ) if err != nil { return err } if e , ok := dst . ( PropertyLoadSaver ) ; ok { return e . Load ( ent . Properties ) } return LoadStruct ( dst , ent . Properties ) }
// loadEntity loads an EntityProto into PropertyLoadSaver or struct pointer.
loadEntity loads an EntityProto into PropertyLoadSaver or struct pointer .