RecurrenceRuleProperty.fromCrawledProperty constructor

RecurrenceRuleProperty.fromCrawledProperty(
  1. CrawledProperty property
)

Implementation

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

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