Explorar el Código

AssistantCallback

- add `Bytes` helper
Alexey Kim hace 1 año
padre
commit
230868e019
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. 12 0
      v2/assistant_callback.go

+ 12 - 0
v2/assistant_callback.go

@@ -0,0 +1,12 @@
+package ticket
+
+import "google.golang.org/protobuf/encoding/protojson"
+
+func (x *AssistantCallback) Bytes() []byte {
+	j, err := protojson.Marshal(x)
+	if err != nil {
+		return nil
+	}
+
+	return j
+}