MetadataAsStruct parses the Response metadata into a provided struct.
(target any)
| 76 | |
| 77 | // MetadataAsStruct parses the Response metadata into a provided struct. |
| 78 | func (r *Response) MetadataAsStruct(target any) error { |
| 79 | return json.Unmarshal(r.Metadata, &target) |
| 80 | } |
| 81 | |
| 82 | // ResponseType represents a valid response type. |
| 83 | type ResponseType string |
no outgoing calls
no test coverage detected