toJsonLd method
Serialize SchemaVisualArtwork to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'VisualArtwork',
'artEdition': convertToJsonLd(artEdition, [String, int]),
'artMedium': convertToJsonLd(artMedium, [String]),
'artform': convertToJsonLd(artform, [String]),
'artist': convertToJsonLd(artist, [SchemaPerson]),
'artworkSurface': convertToJsonLd(artworkSurface, [String]),
'colorist': convertToJsonLd(colorist, [SchemaPerson]),
'depth':
convertToJsonLd(depth, [SchemaDistance, SchemaQuantitativeValue]),
'height':
convertToJsonLd(height, [SchemaDistance, SchemaQuantitativeValue]),
'inker': convertToJsonLd(inker, [SchemaPerson]),
'letterer': convertToJsonLd(letterer, [SchemaPerson]),
'penciler': convertToJsonLd(penciler, [SchemaPerson]),
'surface': convertToJsonLd(surface, [String]),
'weight':
convertToJsonLd(weight, [SchemaMass, SchemaQuantitativeValue]),
'width':
convertToJsonLd(width, [SchemaDistance, SchemaQuantitativeValue]),
});