()
| 101 | } |
| 102 | |
| 103 | func (s ProtocolState) PluginValue() (any, error) { |
| 104 | if !s.Present || s.Null { |
| 105 | return nil, nil |
| 106 | } |
| 107 | var value any |
| 108 | if err := common.Unmarshal(s.Value, &value); err != nil { |
| 109 | return nil, err |
| 110 | } |
| 111 | return value, nil |
| 112 | } |
| 113 | |
| 114 | type ProtocolSemanticEvent struct { |
| 115 | Type string |