UnmarshalStructToObj
Unmarshals a struct to the passed object. Do not use this if the unmarshalled object is a proto message.
def UnmarshalStructToObj(
structObj: *structpb.Struct,
obj: interface{}
) - > error
Unmarshals a struct to the passed object. Do not use this function if the unmarshalled object is a proto message.
Parameters
| Name | Type | Description |
|---|---|---|
| structObj | *structpb.Struct | The source structpb.Struct object to be unmarshaled. This object must not be nil. |
| obj | interface{} | The target object into which the data from structObj will be unmarshaled. This object should not be a proto message. |
Returns
| Type | Description |
|---|---|
error | An error if the struct object is nil, or if marshaling/unmarshaling fails. |