ExceptionRuleProperty.fromCrawledProperty constructor

ExceptionRuleProperty.fromCrawledProperty(
  1. CrawledProperty property
)

Implementation

factory ExceptionRuleProperty.fromCrawledProperty(CrawledProperty property) {
  assert(
    property.name.toUpperCase() == "EXRULE",
    "Received invalid property: ${property.name}",
  );

  return ExceptionRuleProperty.fromValue(
    RecurrenceRuleValue.fromCrawledStringValue(property.value),
  );
}