@@ -16,3 +16,9 @@ func NewStructValuePB(v interface{}) *structpb.Value {
s.UnmarshalJSON(MarshalJSON(v))
return s
}
+
+func NewStructValuePBByBytes(v []byte) *structpb.Value {
+ s := new(structpb.Value)
+ s.UnmarshalJSON(v)
+ return s
+}