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