toJsonLd method
Serialize SchemaReview to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'Review',
'associatedClaimReview':
convertToJsonLd(associatedClaimReview, [SchemaReview]),
'associatedMediaReview':
convertToJsonLd(associatedMediaReview, [SchemaReview]),
'associatedReview': convertToJsonLd(associatedReview, [SchemaReview]),
'itemReviewed': convertToJsonLd(itemReviewed, [SchemaThing]),
'negativeNotes': convertToJsonLd(negativeNotes,
[SchemaItemList, SchemaListItem, String, SchemaWebContent]),
'positiveNotes': convertToJsonLd(positiveNotes,
[SchemaItemList, SchemaListItem, String, SchemaWebContent]),
'reviewAspect':
convertToJsonLd(reviewAspect, [String, SchemaStructuredValue]),
'reviewBody': convertToJsonLd(reviewBody, [String]),
'reviewRating': convertToJsonLd(reviewRating, [SchemaRating]),
});