of static method

FactLink of({
  1. required JsonPath? path,
  2. String? label,
  3. required MSchemaRef? factRef,
  4. required MSchemaRef? linkRef,
  5. bool? isLinkSingleton = false,
  6. bool? isEmbed = false,
  7. int? maxLinks,
  8. int? minLinks,
})

Implementation

static FactLink of({
  required JsonPath? path,
  String? label,
  required MSchemaRef? factRef,
  required MSchemaRef? linkRef,
  bool? isLinkSingleton = false,
  bool? isEmbed = false,
  int? maxLinks,
  int? minLinks
  }) {
  final self = FactLink(<String, dynamic>{}, mtype: FactLinkRef, update: true);
  if (path != null) self.path = path;
  if (label != null) self.label = label;
  if (factRef != null) self.factRef = factRef;
  if (linkRef != null) self.linkRef = linkRef;
  if (isLinkSingleton != null) self.isLinkSingleton = isLinkSingleton;
  if (isEmbed != null) self.isEmbed = isEmbed;
  if (maxLinks != null) self.maxLinks = maxLinks;
  if (minLinks != null) self.minLinks = minLinks;
  return self;
}