SchemaDefinitionExt extension Null safety Extensions

Extension on the SchemaDefinition class which provides a useful suite of methods to work with the SchemaDefinition class.

on
  • SchemaDefinition

Methods

newDocument() → SchemaDocument
Converts a SchemaDefinition to a base SchemaDocument with its fields being set to the associated SchemaKind from the underlying definition.