toJsonLd method

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

Serialize SchemaMiddleSchool to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      '@context': 'https://schema.org',
      '@type': 'MiddleSchool',
      'alumni': convertToJsonLd(alumni, [SchemaPerson]),
      'openingHours': convertToJsonLd(openingHours, [String]),
      'actionableFeedbackPolicy': convertToJsonLd(
          actionableFeedbackPolicy, [SchemaCreativeWork, String]),
      'address': convertToJsonLd(address, [SchemaPostalAddress, String]),
      'agentInteractionStatistic': convertToJsonLd(
          agentInteractionStatistic, [SchemaInteractionCounter]),
      'aggregateRating':
          convertToJsonLd(aggregateRating, [SchemaAggregateRating]),
      'areaServed': convertToJsonLd(areaServed,
          [SchemaAdministrativeArea, SchemaGeoShape, SchemaPlace, String]),
      'award': convertToJsonLd(award, [String]),
      'awards': convertToJsonLd(awards, [String]),
      'brand': convertToJsonLd(brand, [SchemaBrand, SchemaOrganization]),
      'contactPoint': convertToJsonLd(contactPoint, [SchemaContactPoint]),
      'contactPoints': convertToJsonLd(contactPoints, [SchemaContactPoint]),
      'correctionsPolicy':
          convertToJsonLd(correctionsPolicy, [SchemaCreativeWork, String]),
      'department': convertToJsonLd(department, [SchemaOrganization]),
      'dissolutionDate': convertToJsonLd(dissolutionDate, [String]),
      'diversityPolicy':
          convertToJsonLd(diversityPolicy, [SchemaCreativeWork, String]),
      'diversityStaffingReport':
          convertToJsonLd(diversityStaffingReport, [SchemaArticle, String]),
      'duns': convertToJsonLd(duns, [String]),
      'email': convertToJsonLd(email, [String]),
      'employee': convertToJsonLd(employee, [SchemaPerson]),
      'employees': convertToJsonLd(employees, [SchemaPerson]),
      'ethicsPolicy':
          convertToJsonLd(ethicsPolicy, [SchemaCreativeWork, String]),
      'event': convertToJsonLd(event, [SchemaEvent]),
      'events': convertToJsonLd(events, [SchemaEvent]),
      'faxNumber': convertToJsonLd(faxNumber, [String]),
      'founder': convertToJsonLd(founder, [SchemaPerson]),
      'founders': convertToJsonLd(founders, [SchemaPerson]),
      'foundingDate': convertToJsonLd(foundingDate, [String]),
      'foundingLocation': convertToJsonLd(foundingLocation, [SchemaPlace]),
      'funder': convertToJsonLd(funder, [SchemaOrganization, SchemaPerson]),
      'funding': convertToJsonLd(funding, [SchemaGrant]),
      'globalLocationNumber': convertToJsonLd(globalLocationNumber, [String]),
      'hasCertification':
          convertToJsonLd(hasCertification, [SchemaCertification]),
      'hasCredential': convertToJsonLd(
          hasCredential, [SchemaEducationalOccupationalCredential]),
      'hasMerchantReturnPolicy': convertToJsonLd(
          hasMerchantReturnPolicy, [SchemaMerchantReturnPolicy]),
      'hasOfferCatalog':
          convertToJsonLd(hasOfferCatalog, [SchemaOfferCatalog]),
      'hasPOS': convertToJsonLd(hasPOS, [SchemaPlace]),
      'interactionStatistic':
          convertToJsonLd(interactionStatistic, [SchemaInteractionCounter]),
      'isicV4': convertToJsonLd(isicV4, [String]),
      'iso6523Code': convertToJsonLd(iso6523Code, [String]),
      'keywords':
          convertToJsonLd(keywords, [SchemaDefinedTerm, String, String]),
      'knowsAbout':
          convertToJsonLd(knowsAbout, [String, String, SchemaThing]),
      'knowsLanguage':
          convertToJsonLd(knowsLanguage, [SchemaLanguage, String]),
      'legalName': convertToJsonLd(legalName, [String]),
      'leiCode': convertToJsonLd(leiCode, [String]),
      'location': convertToJsonLd(location,
          [SchemaPlace, SchemaPostalAddress, String, SchemaVirtualLocation]),
      'logo': convertToJsonLd(logo, [SchemaImageObject, String]),
      'makesOffer': convertToJsonLd(makesOffer, [SchemaOffer]),
      'member': convertToJsonLd(member, [SchemaOrganization, SchemaPerson]),
      'memberOf': convertToJsonLd(
          memberOf, [SchemaOrganization, SchemaProgramMembership]),
      'members': convertToJsonLd(members, [SchemaOrganization, SchemaPerson]),
      'naics': convertToJsonLd(naics, [String]),
      'nonprofitStatus':
          convertToJsonLd(nonprofitStatus, [SchemaNonprofitType]),
      'numberOfEmployees':
          convertToJsonLd(numberOfEmployees, [SchemaQuantitativeValue]),
      'ownershipFundingInfo': convertToJsonLd(ownershipFundingInfo,
          [SchemaAboutPage, SchemaCreativeWork, String, String]),
      'owns': convertToJsonLd(owns, [SchemaOwnershipInfo, SchemaProduct]),
      'parentOrganization':
          convertToJsonLd(parentOrganization, [SchemaOrganization]),
      'publishingPrinciples':
          convertToJsonLd(publishingPrinciples, [SchemaCreativeWork, String]),
      'review': convertToJsonLd(review, [SchemaReview]),
      'reviews': convertToJsonLd(reviews, [SchemaReview]),
      'seeks': convertToJsonLd(seeks, [SchemaDemand]),
      'serviceArea': convertToJsonLd(serviceArea,
          [SchemaAdministrativeArea, SchemaGeoShape, SchemaPlace]),
      'slogan': convertToJsonLd(slogan, [String]),
      'sponsor': convertToJsonLd(sponsor, [SchemaOrganization, SchemaPerson]),
      'subOrganization':
          convertToJsonLd(subOrganization, [SchemaOrganization]),
      'taxID': convertToJsonLd(taxID, [String]),
      'telephone': convertToJsonLd(telephone, [String]),
      'unnamedSourcesPolicy':
          convertToJsonLd(unnamedSourcesPolicy, [SchemaCreativeWork, String]),
      'vatID': convertToJsonLd(vatID, [String]),
      'additionalProperty':
          convertToJsonLd(additionalProperty, [SchemaPropertyValue]),
      'amenityFeature': convertToJsonLd(
          amenityFeature, [SchemaLocationFeatureSpecification]),
      'branchCode': convertToJsonLd(branchCode, [String]),
      'containedIn': convertToJsonLd(containedIn, [SchemaPlace]),
      'containedInPlace': convertToJsonLd(containedInPlace, [SchemaPlace]),
      'containsPlace': convertToJsonLd(containsPlace, [SchemaPlace]),
      'geo': convertToJsonLd(geo, [SchemaGeoCoordinates, SchemaGeoShape]),
      'geoContains': convertToJsonLd(
          geoContains, [SchemaGeospatialGeometry, SchemaPlace]),
      'geoCoveredBy': convertToJsonLd(
          geoCoveredBy, [SchemaGeospatialGeometry, SchemaPlace]),
      'geoCovers':
          convertToJsonLd(geoCovers, [SchemaGeospatialGeometry, SchemaPlace]),
      'geoCrosses': convertToJsonLd(
          geoCrosses, [SchemaGeospatialGeometry, SchemaPlace]),
      'geoDisjoint': convertToJsonLd(
          geoDisjoint, [SchemaGeospatialGeometry, SchemaPlace]),
      'geoEquals':
          convertToJsonLd(geoEquals, [SchemaGeospatialGeometry, SchemaPlace]),
      'geoIntersects': convertToJsonLd(
          geoIntersects, [SchemaGeospatialGeometry, SchemaPlace]),
      'geoOverlaps': convertToJsonLd(
          geoOverlaps, [SchemaGeospatialGeometry, SchemaPlace]),
      'geoTouches': convertToJsonLd(
          geoTouches, [SchemaGeospatialGeometry, SchemaPlace]),
      'geoWithin':
          convertToJsonLd(geoWithin, [SchemaGeospatialGeometry, SchemaPlace]),
      'hasDriveThroughService':
          convertToJsonLd(hasDriveThroughService, [bool]),
      'hasMap': convertToJsonLd(hasMap, [SchemaMap, String]),
      'isAccessibleForFree': convertToJsonLd(isAccessibleForFree, [bool]),
      'latitude': convertToJsonLd(latitude, [String, int]),
      'longitude': convertToJsonLd(longitude, [String, int]),
      'map': convertToJsonLd(map, [String]),
      'maps': convertToJsonLd(maps, [String]),
      'maximumAttendeeCapacity':
          convertToJsonLd(maximumAttendeeCapacity, [int]),
      'openingHoursSpecification': convertToJsonLd(
          openingHoursSpecification, [SchemaOpeningHoursSpecification]),
      'photo': convertToJsonLd(photo, [SchemaImageObject, SchemaPhotograph]),
      'photos':
          convertToJsonLd(photos, [SchemaImageObject, SchemaPhotograph]),
      'publicAccess': convertToJsonLd(publicAccess, [bool]),
      'smokingAllowed': convertToJsonLd(smokingAllowed, [bool]),
      'specialOpeningHoursSpecification': convertToJsonLd(
          specialOpeningHoursSpecification,
          [SchemaOpeningHoursSpecification]),
      'tourBookingPage': convertToJsonLd(tourBookingPage, [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]),
    });