embedded method

List<IMSchemaProperty>? embedded(
  1. JsonPath? basePath
)

Implementation

List<IMSchemaProperty>? embedded(JsonPath? basePath) {
  if (basePath == null || basePath == JsonPath.root()) {
    return this;
  }
  return [...?this?.map((_) => _.embedded(basePath))];
}