toJsonLd method
Serialize SchemaRentalCarReservation to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'RentalCarReservation',
'dropoffLocation': convertToJsonLd(dropoffLocation, [SchemaPlace]),
'dropoffTime': convertToJsonLd(dropoffTime, [String]),
'pickupLocation': convertToJsonLd(pickupLocation, [SchemaPlace]),
'pickupTime': convertToJsonLd(pickupTime, [String]),
});