toJsonLd method

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

Serialize SchemaShippingDeliveryTime to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'ShippingDeliveryTime',
      'businessDays': convertToJsonLd(
          businessDays, [SchemaDayOfWeek, SchemaOpeningHoursSpecification]),
      'cutoffTime': convertToJsonLd(cutoffTime, [String]),
      'handlingTime': convertToJsonLd(
          handlingTime, [SchemaQuantitativeValue, SchemaServicePeriod]),
      'transitTime': convertToJsonLd(
          transitTime, [SchemaQuantitativeValue, SchemaServicePeriod]),
    });