getFromScope method

RTSchema? getFromScope(
  1. String scope
)

Implementation

RTSchema? getFromScope(String scope) {
  var path = scope.split('/');

  dynamic result;

  for (var p in path) {
    if (p == '#') {
      result = this;
    } else if (p == 'properties') {
      result = result?.properties;
    } else {
      result = result?[p];
    }
  }

  return result;
}