toJsonLd method

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

Serialize SchemaWebAPI to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'WebAPI',
      'documentation': convertToJsonLd(
          documentation, (v) => v is SchemaCreativeWork || v is String),
    });