toJsonLd method

  1. @override
Map<String, dynamic> toJsonLd()
override

Serialize SchemaFoodEstablishmentReservation to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'FoodEstablishmentReservation',
      'endTime': convertToJsonLd(endTime, [String]),
      'partySize': convertToJsonLd(partySize, [SchemaQuantitativeValue, int]),
      'startTime': convertToJsonLd(startTime, [String]),
    });