Raw returns underlying value attached to Object. This is the value originally passed to NewObject, converted to canonical form. Example: object := NewObject(t, map[string]interface{}{"foo": 123}) assert.Equal(t, map[string]interface{}{"foo": 123.0}, object.Raw())
()
| 68 | // object := NewObject(t, map[string]interface{}{"foo": 123}) |
| 69 | // assert.Equal(t, map[string]interface{}{"foo": 123.0}, object.Raw()) |
| 70 | func (o *Object) Raw() map[string]interface{} { |
| 71 | return o.value |
| 72 | } |
| 73 | |
| 74 | // Decode unmarshals the underlying value attached to the Object to a target variable |
| 75 | // target should be one of this: |
no outgoing calls