UniqueIdentifierProperty.fromCrawledProperty constructor

UniqueIdentifierProperty.fromCrawledProperty(
  1. CrawledProperty property
)

Implementation

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

  return UniqueIdentifierProperty(
    value: TextValue.fromCrawledStringValue(property.value).value,
  );
}