toJsonLd method

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

Serialize SchemaMortgageLoan to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      '@context': 'https://schema.org',
      '@type': 'MortgageLoan',
      'domiciledMortgage': convertToJsonLd(domiciledMortgage, [bool]),
      'loanMortgageMandateAmount':
          convertToJsonLd(loanMortgageMandateAmount, [SchemaMonetaryAmount]),
      'amount': convertToJsonLd(amount, [SchemaMonetaryAmount, int]),
      'currency': convertToJsonLd(currency, [String]),
      'gracePeriod': convertToJsonLd(gracePeriod, [SchemaDuration]),
      'loanRepaymentForm':
          convertToJsonLd(loanRepaymentForm, [SchemaRepaymentSpecification]),
      'loanTerm': convertToJsonLd(loanTerm, [SchemaQuantitativeValue]),
      'loanType': convertToJsonLd(loanType, [String, String]),
      'recourseLoan': convertToJsonLd(recourseLoan, [bool]),
      'renegotiableLoan': convertToJsonLd(renegotiableLoan, [bool]),
      'requiredCollateral':
          convertToJsonLd(requiredCollateral, [String, SchemaThing]),
      '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]),
    });