of method Null safety

MEntityDefinition of(
  1. {required Uri? schemaURI,
  2. List<IMSchemaProperty>? properties,
  3. required MSchemaRef? schemaRef,
  4. MSchemaRef? parentRef}
)
override

Implementation

static MEntityDefinition of({
  required Uri? schemaURI,
  List<IMSchemaProperty>? properties,
  required MSchemaRef? schemaRef,
  MSchemaRef? parentRef
  }) {
  final self = MEntityDefinition(<String, dynamic>{}, mtype: MEntityDefinitionRef, update: true);
  if (schemaURI != null) self.schemaURI = schemaURI;
  if (properties != null) self.properties = properties;
  if (schemaRef != null) self.schemaRef = schemaRef;
  if (parentRef != null) self.parentRef = parentRef;
  return self;
}