deepGet method

dynamic deepGet(
  1. List<String> keys
)

Implementation

dynamic deepGet(List<String> keys) {
  if (this == null) return null;
  dynamic current = this;
  for (final key in keys) {
    if (current is Map) {
      current = current[key];
    } else {
      return null;
    }
  }
  return current;
}