toJsonLd method
Serialize SchemaEmployeeRole to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'EmployeeRole',
'baseSalary': convertToJsonLd(
baseSalary, [SchemaMonetaryAmount, SchemaPriceSpecification, num]),
'salaryCurrency': convertToJsonLd(salaryCurrency, [String]),
});