toJsonLd method

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

Serialize SchemaHealthPlanFormulary to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'HealthPlanFormulary',
      'healthPlanCostSharing': convertToJsonLd(healthPlanCostSharing,
          [SchemaHealthPlanCostSharingSpecification, bool]),
      'healthPlanDrugTier': convertToJsonLd(healthPlanDrugTier, [String]),
      'offersPrescriptionByMail':
          convertToJsonLd(offersPrescriptionByMail, [bool]),
    });