toJsonLd method
Serialize SchemaRoom to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
'@context': 'https://schema.org',
'@type': 'Room',
'accommodationCategory':
convertToJsonLd(accommodationCategory, [String]),
'accommodationFloorPlan':
convertToJsonLd(accommodationFloorPlan, [SchemaFloorPlan]),
'amenityFeature': convertToJsonLd(
amenityFeature, [SchemaLocationFeatureSpecification]),
'bed': convertToJsonLd(bed, [SchemaBedDetails, SchemaBedType, String]),
'floorLevel': convertToJsonLd(floorLevel, [String]),
'floorSize': convertToJsonLd(floorSize, [SchemaQuantitativeValue]),
'leaseLength': convertToJsonLd(
leaseLength, [SchemaDuration, SchemaQuantitativeValue]),
'numberOfBathroomsTotal':
convertToJsonLd(numberOfBathroomsTotal, [int]),
'numberOfBedrooms':
convertToJsonLd(numberOfBedrooms, [SchemaQuantitativeValue, int]),
'numberOfFullBathrooms': convertToJsonLd(numberOfFullBathrooms, [int]),
'numberOfPartialBathrooms':
convertToJsonLd(numberOfPartialBathrooms, [int]),
'numberOfRooms':
convertToJsonLd(numberOfRooms, [SchemaQuantitativeValue, int]),
'occupancy': convertToJsonLd(occupancy, [SchemaQuantitativeValue]),
'permittedUsage': convertToJsonLd(permittedUsage, [String]),
'petsAllowed': convertToJsonLd(petsAllowed, [String, bool]),
'tourBookingPage': convertToJsonLd(tourBookingPage, [String]),
'yearBuilt': convertToJsonLd(yearBuilt, [int]),
'additionalProperty':
convertToJsonLd(additionalProperty, [SchemaPropertyValue]),
'address': convertToJsonLd(address, [SchemaPostalAddress, String]),
'aggregateRating':
convertToJsonLd(aggregateRating, [SchemaAggregateRating]),
'branchCode': convertToJsonLd(branchCode, [String]),
'containedIn': convertToJsonLd(containedIn, [SchemaPlace]),
'containedInPlace': convertToJsonLd(containedInPlace, [SchemaPlace]),
'containsPlace': convertToJsonLd(containsPlace, [SchemaPlace]),
'event': convertToJsonLd(event, [SchemaEvent]),
'events': convertToJsonLd(events, [SchemaEvent]),
'faxNumber': convertToJsonLd(faxNumber, [String]),
'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]),
'globalLocationNumber': convertToJsonLd(globalLocationNumber, [String]),
'hasCertification':
convertToJsonLd(hasCertification, [SchemaCertification]),
'hasDriveThroughService':
convertToJsonLd(hasDriveThroughService, [bool]),
'hasMap': convertToJsonLd(hasMap, [SchemaMap, String]),
'isAccessibleForFree': convertToJsonLd(isAccessibleForFree, [bool]),
'isicV4': convertToJsonLd(isicV4, [String]),
'keywords':
convertToJsonLd(keywords, [SchemaDefinedTerm, String, String]),
'latitude': convertToJsonLd(latitude, [String, int]),
'logo': convertToJsonLd(logo, [SchemaImageObject, String]),
'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]),
'review': convertToJsonLd(review, [SchemaReview]),
'reviews': convertToJsonLd(reviews, [SchemaReview]),
'slogan': convertToJsonLd(slogan, [String]),
'smokingAllowed': convertToJsonLd(smokingAllowed, [bool]),
'specialOpeningHoursSpecification': convertToJsonLd(
specialOpeningHoursSpecification,
[SchemaOpeningHoursSpecification]),
'telephone': convertToJsonLd(telephone, [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]),
});