public protocol LDValueConvertible

Protocol indicting a type can be converted into an LDValue.

Types used with the LDClient.variation(forKey: defaultValue:) or LDClient.variationDetail(forKey: detailValue:) methods are required to implement this protocol. This protocol has already been implemented for Bool, Int, Double, String, and LDValue types.

This allows custom types as evaluation result types while retaining the LDValue type throughout the event processing system.

  • Return an LDValue representation of this instance.



    func toLDValue() -> LDValue