toJsonLd method

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

Serialize SchemaFinancialProduct to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      '@context': 'https://schema.org',
      '@type': 'FinancialProduct',
      'annualPercentageRate': convertToJsonLd(
          annualPercentageRate, [SchemaQuantitativeValue, int]),
      'feesAndCommissionsSpecification':
          convertToJsonLd(feesAndCommissionsSpecification, [String, String]),
      'interestRate':
          convertToJsonLd(interestRate, [SchemaQuantitativeValue, int]),
      'aggregateRating':
          convertToJsonLd(aggregateRating, [SchemaAggregateRating]),
      'areaServed': convertToJsonLd(areaServed,
          [SchemaAdministrativeArea, SchemaGeoShape, SchemaPlace, String]),
      'audience': convertToJsonLd(audience, [SchemaAudience]),
      'availableChannel':
          convertToJsonLd(availableChannel, [SchemaServiceChannel]),
      'award': convertToJsonLd(award, [String]),
      'brand': convertToJsonLd(brand, [SchemaBrand, SchemaOrganization]),
      'broker': convertToJsonLd(broker, [SchemaOrganization, SchemaPerson]),
      'category': convertToJsonLd(category, [
        SchemaCategoryCode,
        SchemaPhysicalActivityCategory,
        String,
        String,
        SchemaThing
      ]),
      'hasCertification':
          convertToJsonLd(hasCertification, [SchemaCertification]),
      'hasOfferCatalog':
          convertToJsonLd(hasOfferCatalog, [SchemaOfferCatalog]),
      'hoursAvailable':
          convertToJsonLd(hoursAvailable, [SchemaOpeningHoursSpecification]),
      'isRelatedTo':
          convertToJsonLd(isRelatedTo, [SchemaProduct, SchemaService]),
      'isSimilarTo':
          convertToJsonLd(isSimilarTo, [SchemaProduct, SchemaService]),
      'logo': convertToJsonLd(logo, [SchemaImageObject, String]),
      'offers': convertToJsonLd(offers, [SchemaDemand, SchemaOffer]),
      'produces': convertToJsonLd(produces, [SchemaThing]),
      'provider':
          convertToJsonLd(provider, [SchemaOrganization, SchemaPerson]),
      'providerMobility': convertToJsonLd(providerMobility, [String]),
      'review': convertToJsonLd(review, [SchemaReview]),
      'serviceArea': convertToJsonLd(serviceArea,
          [SchemaAdministrativeArea, SchemaGeoShape, SchemaPlace]),
      'serviceAudience': convertToJsonLd(serviceAudience, [SchemaAudience]),
      'serviceOutput': convertToJsonLd(serviceOutput, [SchemaThing]),
      'serviceType': convertToJsonLd(
          serviceType, [SchemaGovernmentBenefitsType, String]),
      'slogan': convertToJsonLd(slogan, [String]),
      'termsOfService': convertToJsonLd(termsOfService, [String, String]),
      '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]),
    });