toJsonLd method

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

Serialize SchemaWarrantyPromise to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'WarrantyPromise',
      'durationOfWarranty':
          convertToJsonLd(durationOfWarranty, [SchemaQuantitativeValue]),
      'warrantyScope': convertToJsonLd(warrantyScope, [SchemaWarrantyScope]),
    });