toJsonLd method

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

Serialize SchemaFinancialProduct to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'FinancialProduct',
      'annualPercentageRate': convertToJsonLd(
          annualPercentageRate, [SchemaQuantitativeValue, num]),
      'feesAndCommissionsSpecification':
          convertToJsonLd(feesAndCommissionsSpecification, [String]),
      'interestRate':
          convertToJsonLd(interestRate, [SchemaQuantitativeValue, num]),
    });