EPContextObject
public class EPContextObject : NSObject
                An EPContextObject represents a valu stored into a chat conversation context.
- 
                  
                  
The context key.
Declaration
Swift
public let key: String - 
                  
                  
The value associated with the context key. This is the raw value. For example, for a date it will be the timestamp.
Declaration
Swift
public let value: Any - 
                  
                  
A data base 64 string if this context object represents a file.
Declaration
Swift
public let base64: String? - 
                  
                  
The formatted value to display in a message instead of the value itself.
Declaration
Swift
public var formattedValue: String? 
- 
                  
                  
Initializes a new EPContextObject.
Declaration
Swift
public required init(key: String, value: Any, base64: String? = nil, formattedValue: String? = nil)Parameters
keyThe context key.
valueThe associated value.
base64A data base64 string. (optional)
formattedValueA formatted value to use in a message instead of the value itself. (optional)
 
- 
                  
                  
Returns a JSON version of the EPContextObject.
Declaration
Swift
public func toJSON() -> [String : Any]Return Value
A JSON dictionary representing the EPContextObject.
 
        EPContextObject Class Reference