of static method

FactMetaDate of({
  1. required JsonPath? path,
  2. required String? verb,
  3. String? label,
  4. required MSchemaRef? factRef,
  5. bool? isFlexible = false,
  6. IRemindableInfo? remindableInfo,
  7. required IFactAgent? agent,
  8. ITimeSensitivity? timeSensitivity,
  9. String? followUpLabel,
  10. int? priority,
  11. bool? isHistorical = false,
  12. bool? isFuture = false,
  13. bool? isStart = false,
  14. bool? isEnd = false,
  15. bool? isExpiration = false,
  16. bool? isTimestamp = false,
  17. bool? hasTime = false,
  18. IFactRecurrence? recurs,
  19. List<String>? dateTokens,
})

Implementation

static FactMetaDate of(
    {required JsonPath? path,
    required String? verb,
    String? label,
    required MSchemaRef? factRef,
    bool? isFlexible = false,
    IRemindableInfo? remindableInfo,
    required IFactAgent? agent,
    ITimeSensitivity? timeSensitivity,
    String? followUpLabel,
    int? priority,
    bool? isHistorical = false,
    bool? isFuture = false,
    bool? isStart = false,
    bool? isEnd = false,
    bool? isExpiration = false,
    bool? isTimestamp = false,
    bool? hasTime = false,
    IFactRecurrence? recurs,
    List<String>? dateTokens}) {
  final self =
      FactMetaDate(<String, dynamic>{}, mtype: FactMetaDateRef, update: true);
  if (path != null) self.path = path;
  if (verb != null) self.verb = verb;
  if (label != null) self.label = label;
  if (factRef != null) self.factRef = factRef;
  if (isFlexible != null) self.isFlexible = isFlexible;
  if (remindableInfo != null) self.remindableInfo = remindableInfo;
  if (agent != null) self.agent = agent;
  if (timeSensitivity != null) self.timeSensitivity = timeSensitivity;
  if (followUpLabel != null) self.followUpLabel = followUpLabel;
  if (priority != null) self.priority = priority;
  if (isHistorical != null) self.isHistorical = isHistorical;
  if (isFuture != null) self.isFuture = isFuture;
  if (isStart != null) self.isStart = isStart;
  if (isEnd != null) self.isEnd = isEnd;
  if (isExpiration != null) self.isExpiration = isExpiration;
  if (isTimestamp != null) self.isTimestamp = isTimestamp;
  if (hasTime != null) self.hasTime = hasTime;
  if (recurs != null) self.recurs = recurs;
  if (dateTokens != null) self.dateTokens = dateTokens;
  return self;
}