RepeatCountProperty.fromCrawledProperty constructor

RepeatCountProperty.fromCrawledProperty(
  1. CrawledProperty property
)

Implementation

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

  return RepeatCountProperty(
    IntegerValue.fromCrawledStringValue(property.value).value,
  );
}