toJsonLd method

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

Serialize SchemaGovernmentService to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'GovernmentService',
      'jurisdiction':
          convertToJsonLd(jurisdiction, [SchemaAdministrativeArea, String]),
      'serviceOperator':
          convertToJsonLd(serviceOperator, [SchemaOrganization]),
    });