toJsonLd method
Serialize SchemaPublicationEvent to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
'@context': 'https://schema.org',
'@type': 'PublicationEvent',
'free': convertToJsonLd(free, [bool]),
'publishedBy':
convertToJsonLd(publishedBy, [SchemaOrganization, SchemaPerson]),
'publishedOn': convertToJsonLd(publishedOn, [SchemaBroadcastService]),
'about': convertToJsonLd(about, [SchemaThing]),
'actor': convertToJsonLd(actor, [SchemaPerson]),
'aggregateRating':
convertToJsonLd(aggregateRating, [SchemaAggregateRating]),
'attendee':
convertToJsonLd(attendee, [SchemaOrganization, SchemaPerson]),
'attendees':
convertToJsonLd(attendees, [SchemaOrganization, SchemaPerson]),
'audience': convertToJsonLd(audience, [SchemaAudience]),
'composer':
convertToJsonLd(composer, [SchemaOrganization, SchemaPerson]),
'contributor':
convertToJsonLd(contributor, [SchemaOrganization, SchemaPerson]),
'director': convertToJsonLd(director, [SchemaPerson]),
'doorTime': convertToJsonLd(doorTime, [String, String]),
'duration': convertToJsonLd(duration, [SchemaDuration]),
'endDate': convertToJsonLd(endDate, [String, String]),
'eventAttendanceMode': convertToJsonLd(
eventAttendanceMode, [SchemaEventAttendanceModeEnumeration]),
'eventSchedule': convertToJsonLd(eventSchedule, [SchemaSchedule]),
'eventStatus': convertToJsonLd(eventStatus, [SchemaEventStatusType]),
'funder': convertToJsonLd(funder, [SchemaOrganization, SchemaPerson]),
'funding': convertToJsonLd(funding, [SchemaGrant]),
'inLanguage': convertToJsonLd(inLanguage, [SchemaLanguage, String]),
'isAccessibleForFree': convertToJsonLd(isAccessibleForFree, [bool]),
'keywords':
convertToJsonLd(keywords, [SchemaDefinedTerm, String, String]),
'location': convertToJsonLd(location,
[SchemaPlace, SchemaPostalAddress, String, SchemaVirtualLocation]),
'maximumAttendeeCapacity':
convertToJsonLd(maximumAttendeeCapacity, [int]),
'maximumPhysicalAttendeeCapacity':
convertToJsonLd(maximumPhysicalAttendeeCapacity, [int]),
'maximumVirtualAttendeeCapacity':
convertToJsonLd(maximumVirtualAttendeeCapacity, [int]),
'offers': convertToJsonLd(offers, [SchemaDemand, SchemaOffer]),
'organizer':
convertToJsonLd(organizer, [SchemaOrganization, SchemaPerson]),
'performer':
convertToJsonLd(performer, [SchemaOrganization, SchemaPerson]),
'performers':
convertToJsonLd(performers, [SchemaOrganization, SchemaPerson]),
'previousStartDate': convertToJsonLd(previousStartDate, [String]),
'recordedIn': convertToJsonLd(recordedIn, [SchemaCreativeWork]),
'remainingAttendeeCapacity':
convertToJsonLd(remainingAttendeeCapacity, [int]),
'review': convertToJsonLd(review, [SchemaReview]),
'sponsor': convertToJsonLd(sponsor, [SchemaOrganization, SchemaPerson]),
'startDate': convertToJsonLd(startDate, [String, String]),
'subEvent': convertToJsonLd(subEvent, [SchemaEvent]),
'subEvents': convertToJsonLd(subEvents, [SchemaEvent]),
'superEvent': convertToJsonLd(superEvent, [SchemaEvent]),
'translator':
convertToJsonLd(translator, [SchemaOrganization, SchemaPerson]),
'typicalAgeRange': convertToJsonLd(typicalAgeRange, [String]),
'workFeatured': convertToJsonLd(workFeatured, [SchemaCreativeWork]),
'workPerformed': convertToJsonLd(workPerformed, [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]),
});