jsonVariation method

LDValue jsonVariation(
  1. String flagKey,
  2. LDValue defaultValue
)

Returns the value of flag flagKey for the current context as an LDValue.

Will return the provided defaultValue if the flag is missing, or if some error occurs.

Implementation

LDValue jsonVariation(String flagKey, LDValue defaultValue) {
  return _client.jsonVariation(flagKey, defaultValue);
}