get method

Object? get(
  1. Object? context
)

Implementation

Object? get(Object? context) {
  if (isDSX) {
    var dsx = DSX.resolveDSX(keys.first);
    return dsx;
  }

  if (context == null || isEmptyObject(context)) return null;

  var length = keys.length;
  if (length == 0) return context;

  var value = _get(context, keys[0]);

  for (var i = 1; i < length; ++i) {
    var k = keys[i];
    value = _get(value, k);
  }

  return value;
}