getOrgMetadata method

Future<OrganizationMetadata> getOrgMetadata(
  1. MSchemaRef ref, {
  2. bool reload = false,
})

Implementation

Future<OrganizationMetadata> getOrgMetadata(MSchemaRef ref,
    {bool reload = false}) async {
  var existing = _orgTypes[ref];
  if (existing == null) {
    final schema = await schemaService.getSchema(ref, reload: reload);
    existing = await _loadOrgSchema(ref, schema as IMEntityDefinition);
    _orgTypes[ref] = existing!;
  }
  return existing;
}