toJsonLd method
Serialize SchemaUserComments to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'UserComments',
'commentText': convertToJsonLd(commentText),
'commentTime': convertToJsonLd(commentTime),
'creator': convertToJsonLd(
creator, (v) => v is SchemaOrganization || v is SchemaPerson),
'discusses': convertToJsonLd(discusses),
'replyToUrl': convertToJsonLd(replyToUrl),
});