getFor method
Retrieves an object element by index.
Returns ofNull if the value is not an object or if the key is not found.
Implementation
LDValue getFor(String key) {
if (_value is _LDValueObject) {
return (_value as _LDValueObject)[key];
}
return LDValue.ofNull();
}