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