func (r *RPCResult) Attachment(key string, defaultValue interface{}) interface{} {
	v, ok := r.Attrs[key]
	if !ok {
		v = defaultValue
	}
	return v
}
// Attachment gets attachment by key with default value.
Attachment gets attachment by key with default value.
// Attachment gets attachment by key with default value .
func (r *RPCResult) Attachment(key string, defaultValue interface{}) interface{} {
	v, ok := r.Attrs[key]
	if !ok {
		v = defaultValue
	}
	return v
}
func ( r * RPCResult ) Attachment ( key string , defaultValue interface { } ) interface { } { v , ok := r . Attrs [ key ] if ! ok { v = defaultValue } return v }
Attachment gets attachment by key with default value.
Attachment gets attachment by key with default value .