toJsonLd method
Serialize SchemaBook to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'Book',
'abridged': convertToJsonLd(abridged, [bool]),
'bookEdition': convertToJsonLd(bookEdition, [String]),
'bookFormat': convertToJsonLd(bookFormat, [SchemaBookFormatType]),
'illustrator': convertToJsonLd(illustrator, [SchemaPerson]),
'isbn': convertToJsonLd(isbn, [String]),
'numberOfPages': convertToJsonLd(numberOfPages, [int]),
});