toJsonLd method

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

Serialize SchemaClass to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'Class',
      'supersededBy': convertToJsonLd(
          supersededBy,
          (v) =>
              v is SchemaClass ||
              v is SchemaEnumeration ||
              v is SchemaProperty),
    });