toJsonLd method

  1. @override
Map<String, dynamic> toJsonLd()

Serialize SchemaProductCollection to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      '@context': 'https://schema.org',
      '@type': 'ProductCollection',
      'includesObject':
          convertToJsonLd(includesObject, [SchemaTypeAndQuantityNode]),
      'collectionSize': convertToJsonLd(collectionSize, [int]),
      'additionalProperty':
          convertToJsonLd(additionalProperty, [SchemaPropertyValue]),
      'aggregateRating':
          convertToJsonLd(aggregateRating, [SchemaAggregateRating]),
      'asin': convertToJsonLd(asin, [String, String]),
      'audience': convertToJsonLd(audience, [SchemaAudience]),
      'award': convertToJsonLd(award, [String]),
      'awards': convertToJsonLd(awards, [String]),
      'brand': convertToJsonLd(brand, [SchemaBrand, SchemaOrganization]),
      'category': convertToJsonLd(category, [
        SchemaCategoryCode,
        SchemaPhysicalActivityCategory,
        String,
        String,
        SchemaThing
      ]),
      'color': convertToJsonLd(color, [String]),
      'colorSwatch':
          convertToJsonLd(colorSwatch, [SchemaImageObject, String]),
      'countryOfAssembly': convertToJsonLd(countryOfAssembly, [String]),
      'countryOfLastProcessing':
          convertToJsonLd(countryOfLastProcessing, [String]),
      'countryOfOrigin': convertToJsonLd(countryOfOrigin, [SchemaCountry]),
      'depth':
          convertToJsonLd(depth, [SchemaDistance, SchemaQuantitativeValue]),
      'funding': convertToJsonLd(funding, [SchemaGrant]),
      'gtin': convertToJsonLd(gtin, [String, String]),
      'gtin12': convertToJsonLd(gtin12, [String]),
      'gtin13': convertToJsonLd(gtin13, [String]),
      'gtin14': convertToJsonLd(gtin14, [String]),
      'gtin8': convertToJsonLd(gtin8, [String]),
      'hasAdultConsideration': convertToJsonLd(
          hasAdultConsideration, [SchemaAdultOrientedEnumeration]),
      'hasCertification':
          convertToJsonLd(hasCertification, [SchemaCertification]),
      'hasEnergyConsumptionDetails': convertToJsonLd(
          hasEnergyConsumptionDetails, [SchemaEnergyConsumptionDetails]),
      'hasMeasurement':
          convertToJsonLd(hasMeasurement, [SchemaQuantitativeValue]),
      'hasMerchantReturnPolicy': convertToJsonLd(
          hasMerchantReturnPolicy, [SchemaMerchantReturnPolicy]),
      'height':
          convertToJsonLd(height, [SchemaDistance, SchemaQuantitativeValue]),
      'inProductGroupWithID': convertToJsonLd(inProductGroupWithID, [String]),
      'isAccessoryOrSparePartFor':
          convertToJsonLd(isAccessoryOrSparePartFor, [SchemaProduct]),
      'isConsumableFor': convertToJsonLd(isConsumableFor, [SchemaProduct]),
      'isFamilyFriendly': convertToJsonLd(isFamilyFriendly, [bool]),
      'isRelatedTo':
          convertToJsonLd(isRelatedTo, [SchemaProduct, SchemaService]),
      'isSimilarTo':
          convertToJsonLd(isSimilarTo, [SchemaProduct, SchemaService]),
      'isVariantOf': convertToJsonLd(
          isVariantOf, [SchemaProductGroup, SchemaProductModel]),
      'itemCondition':
          convertToJsonLd(itemCondition, [SchemaOfferItemCondition]),
      'keywords':
          convertToJsonLd(keywords, [SchemaDefinedTerm, String, String]),
      'logo': convertToJsonLd(logo, [SchemaImageObject, String]),
      'manufacturer': convertToJsonLd(manufacturer, [SchemaOrganization]),
      'material': convertToJsonLd(material, [SchemaProduct, String, String]),
      'mobileUrl': convertToJsonLd(mobileUrl, [String]),
      'model': convertToJsonLd(model, [SchemaProductModel, String]),
      'mpn': convertToJsonLd(mpn, [String]),
      'negativeNotes': convertToJsonLd(negativeNotes,
          [SchemaItemList, SchemaListItem, String, SchemaWebContent]),
      'nsn': convertToJsonLd(nsn, [String]),
      'offers': convertToJsonLd(offers, [SchemaDemand, SchemaOffer]),
      'pattern': convertToJsonLd(pattern, [SchemaDefinedTerm, String]),
      'positiveNotes': convertToJsonLd(positiveNotes,
          [SchemaItemList, SchemaListItem, String, SchemaWebContent]),
      'productID': convertToJsonLd(productID, [String]),
      'productionDate': convertToJsonLd(productionDate, [String]),
      'purchaseDate': convertToJsonLd(purchaseDate, [String]),
      'releaseDate': convertToJsonLd(releaseDate, [String]),
      'review': convertToJsonLd(review, [SchemaReview]),
      'reviews': convertToJsonLd(reviews, [SchemaReview]),
      'size': convertToJsonLd(size, [
        SchemaDefinedTerm,
        SchemaQuantitativeValue,
        SchemaSizeSpecification,
        String
      ]),
      'sku': convertToJsonLd(sku, [String]),
      'slogan': convertToJsonLd(slogan, [String]),
      'weight': convertToJsonLd(weight, [SchemaQuantitativeValue]),
      'width':
          convertToJsonLd(width, [SchemaDistance, SchemaQuantitativeValue]),
      'about': convertToJsonLd(about, [SchemaThing]),
      'abstract': convertToJsonLd(abstract, [String]),
      'accessMode': convertToJsonLd(accessMode, [String]),
      'accessModeSufficient':
          convertToJsonLd(accessModeSufficient, [SchemaItemList]),
      'accessibilityAPI': convertToJsonLd(accessibilityAPI, [String]),
      'accessibilityControl': convertToJsonLd(accessibilityControl, [String]),
      'accessibilityFeature': convertToJsonLd(accessibilityFeature, [String]),
      'accessibilityHazard': convertToJsonLd(accessibilityHazard, [String]),
      'accessibilitySummary': convertToJsonLd(accessibilitySummary, [String]),
      'accountablePerson': convertToJsonLd(accountablePerson, [SchemaPerson]),
      'acquireLicensePage':
          convertToJsonLd(acquireLicensePage, [SchemaCreativeWork, String]),
      'alternativeHeadline': convertToJsonLd(alternativeHeadline, [String]),
      'archivedAt': convertToJsonLd(archivedAt, [String, SchemaWebPage]),
      'assesses': convertToJsonLd(assesses, [SchemaDefinedTerm, String]),
      'associatedMedia':
          convertToJsonLd(associatedMedia, [SchemaMediaObject]),
      'audio': convertToJsonLd(
          audio, [SchemaAudioObject, SchemaClip, SchemaMusicRecording]),
      'author': convertToJsonLd(author, [SchemaOrganization, SchemaPerson]),
      'character': convertToJsonLd(character, [SchemaPerson]),
      'citation': convertToJsonLd(citation, [SchemaCreativeWork, String]),
      'comment': convertToJsonLd(comment, [SchemaComment]),
      'commentCount': convertToJsonLd(commentCount, [int]),
      'conditionsOfAccess': convertToJsonLd(conditionsOfAccess, [String]),
      'contentLocation': convertToJsonLd(contentLocation, [SchemaPlace]),
      'contentRating': convertToJsonLd(contentRating, [SchemaRating, String]),
      'contentReferenceTime': convertToJsonLd(contentReferenceTime, [String]),
      'contributor':
          convertToJsonLd(contributor, [SchemaOrganization, SchemaPerson]),
      'copyrightHolder': convertToJsonLd(
          copyrightHolder, [SchemaOrganization, SchemaPerson]),
      'copyrightNotice': convertToJsonLd(copyrightNotice, [String]),
      'copyrightYear': convertToJsonLd(copyrightYear, [int]),
      'correction': convertToJsonLd(
          correction, [SchemaCorrectionComment, String, String]),
      'creativeWorkStatus':
          convertToJsonLd(creativeWorkStatus, [SchemaDefinedTerm, String]),
      'creator': convertToJsonLd(creator, [SchemaOrganization, SchemaPerson]),
      'creditText': convertToJsonLd(creditText, [String]),
      'dateCreated': convertToJsonLd(dateCreated, [String, String]),
      'dateModified': convertToJsonLd(dateModified, [String, String]),
      'datePublished': convertToJsonLd(datePublished, [String, String]),
      'digitalSourceType': convertToJsonLd(
          digitalSourceType, [SchemaIPTCDigitalSourceEnumeration]),
      'discussionUrl': convertToJsonLd(discussionUrl, [String]),
      'editEIDR': convertToJsonLd(editEIDR, [String, String]),
      'editor': convertToJsonLd(editor, [SchemaPerson]),
      'educationalAlignment':
          convertToJsonLd(educationalAlignment, [SchemaAlignmentObject]),
      'educationalLevel': convertToJsonLd(
          educationalLevel, [SchemaDefinedTerm, String, String]),
      'educationalUse':
          convertToJsonLd(educationalUse, [SchemaDefinedTerm, String]),
      'encoding': convertToJsonLd(encoding, [SchemaMediaObject]),
      'encodingFormat': convertToJsonLd(encodingFormat, [String, String]),
      'encodings': convertToJsonLd(encodings, [SchemaMediaObject]),
      'exampleOfWork': convertToJsonLd(exampleOfWork, [SchemaCreativeWork]),
      'expires': convertToJsonLd(expires, [String, String]),
      'fileFormat': convertToJsonLd(fileFormat, [String, String]),
      'funder': convertToJsonLd(funder, [SchemaOrganization, SchemaPerson]),
      'genre': convertToJsonLd(genre, [String, String]),
      'hasPart': convertToJsonLd(hasPart, [SchemaCreativeWork]),
      'headline': convertToJsonLd(headline, [String]),
      'inLanguage': convertToJsonLd(inLanguage, [SchemaLanguage, String]),
      'interactionStatistic':
          convertToJsonLd(interactionStatistic, [SchemaInteractionCounter]),
      'interactivityType': convertToJsonLd(interactivityType, [String]),
      'interpretedAsClaim':
          convertToJsonLd(interpretedAsClaim, [SchemaClaim]),
      'isAccessibleForFree': convertToJsonLd(isAccessibleForFree, [bool]),
      'isBasedOn': convertToJsonLd(
          isBasedOn, [SchemaCreativeWork, SchemaProduct, String]),
      'isBasedOnUrl': convertToJsonLd(
          isBasedOnUrl, [SchemaCreativeWork, SchemaProduct, String]),
      'isPartOf': convertToJsonLd(isPartOf, [SchemaCreativeWork, String]),
      'learningResourceType':
          convertToJsonLd(learningResourceType, [SchemaDefinedTerm, String]),
      'license': convertToJsonLd(license, [SchemaCreativeWork, String]),
      'locationCreated': convertToJsonLd(locationCreated, [SchemaPlace]),
      'mainEntity': convertToJsonLd(mainEntity, [SchemaThing]),
      'maintainer':
          convertToJsonLd(maintainer, [SchemaOrganization, SchemaPerson]),
      'materialExtent':
          convertToJsonLd(materialExtent, [SchemaQuantitativeValue, String]),
      'mentions': convertToJsonLd(mentions, [SchemaThing]),
      'position': convertToJsonLd(position, [String, int]),
      'producer':
          convertToJsonLd(producer, [SchemaOrganization, SchemaPerson]),
      'provider':
          convertToJsonLd(provider, [SchemaOrganization, SchemaPerson]),
      'publication': convertToJsonLd(publication, [SchemaPublicationEvent]),
      'publisher':
          convertToJsonLd(publisher, [SchemaOrganization, SchemaPerson]),
      'publisherImprint':
          convertToJsonLd(publisherImprint, [SchemaOrganization]),
      'publishingPrinciples':
          convertToJsonLd(publishingPrinciples, [SchemaCreativeWork, String]),
      'recordedAt': convertToJsonLd(recordedAt, [SchemaEvent]),
      'releasedEvent':
          convertToJsonLd(releasedEvent, [SchemaPublicationEvent]),
      'schemaVersion': convertToJsonLd(schemaVersion, [String, String]),
      'sdDatePublished': convertToJsonLd(sdDatePublished, [String]),
      'sdLicense': convertToJsonLd(sdLicense, [SchemaCreativeWork, String]),
      'sdPublisher':
          convertToJsonLd(sdPublisher, [SchemaOrganization, SchemaPerson]),
      'sourceOrganization':
          convertToJsonLd(sourceOrganization, [SchemaOrganization]),
      'spatial': convertToJsonLd(spatial, [SchemaPlace]),
      'spatialCoverage': convertToJsonLd(spatialCoverage, [SchemaPlace]),
      'sponsor': convertToJsonLd(sponsor, [SchemaOrganization, SchemaPerson]),
      'teaches': convertToJsonLd(teaches, [SchemaDefinedTerm, String]),
      'temporal': convertToJsonLd(temporal, [String, String]),
      'temporalCoverage':
          convertToJsonLd(temporalCoverage, [String, String, String]),
      'text': convertToJsonLd(text, [String]),
      'thumbnail': convertToJsonLd(thumbnail, [SchemaImageObject]),
      'thumbnailUrl': convertToJsonLd(thumbnailUrl, [String]),
      'timeRequired': convertToJsonLd(timeRequired, [SchemaDuration]),
      'translationOfWork':
          convertToJsonLd(translationOfWork, [SchemaCreativeWork]),
      'translator':
          convertToJsonLd(translator, [SchemaOrganization, SchemaPerson]),
      'typicalAgeRange': convertToJsonLd(typicalAgeRange, [String]),
      'usageInfo': convertToJsonLd(usageInfo, [SchemaCreativeWork, String]),
      'version': convertToJsonLd(version, [String, int]),
      'video': convertToJsonLd(video, [SchemaClip, SchemaVideoObject]),
      'workExample': convertToJsonLd(workExample, [SchemaCreativeWork]),
      'workTranslation':
          convertToJsonLd(workTranslation, [SchemaCreativeWork]),
      'additionalType': convertToJsonLd(additionalType, [String, String]),
      'alternateName': convertToJsonLd(alternateName, [String]),
      'description': convertToJsonLd(description, [String, SchemaTextObject]),
      'disambiguatingDescription':
          convertToJsonLd(disambiguatingDescription, [String]),
      'identifier':
          convertToJsonLd(identifier, [SchemaPropertyValue, String, String]),
      'image': convertToJsonLd(image, [SchemaImageObject, String]),
      'mainEntityOfPage':
          convertToJsonLd(mainEntityOfPage, [SchemaCreativeWork, String]),
      'name': convertToJsonLd(name, [String]),
      'potentialAction': convertToJsonLd(potentialAction, [SchemaAction]),
      'sameAs': convertToJsonLd(sameAs, [String]),
      'subjectOf':
          convertToJsonLd(subjectOf, [SchemaCreativeWork, SchemaEvent]),
      'url': convertToJsonLd(url, [String]),
    });