toJsonLd method

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

Serialize SchemaShippingService to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'ShippingService',
      'fulfillmentType': convertToJsonLd(
          fulfillmentType, [SchemaFulfillmentTypeEnumeration]),
      'handlingTime': convertToJsonLd(
          handlingTime, [SchemaQuantitativeValue, SchemaServicePeriod]),
      'shippingConditions':
          convertToJsonLd(shippingConditions, [SchemaShippingConditions]),
      'validForMemberTier':
          convertToJsonLd(validForMemberTier, [SchemaMemberProgramTier]),
    });