toJsonLd method
Serialize SchemaJobPosting to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
'@context': 'https://schema.org',
'@type': 'JobPosting',
'applicantLocationRequirements': convertToJsonLd(
applicantLocationRequirements, [SchemaAdministrativeArea]),
'applicationContact':
convertToJsonLd(applicationContact, [SchemaContactPoint]),
'baseSalary': convertToJsonLd(
baseSalary, [SchemaMonetaryAmount, SchemaPriceSpecification, int]),
'benefits': convertToJsonLd(benefits, [String]),
'datePosted': convertToJsonLd(datePosted, [String, String]),
'directApply': convertToJsonLd(directApply, [bool]),
'educationRequirements': convertToJsonLd(educationRequirements,
[SchemaEducationalOccupationalCredential, String]),
'eligibilityToWorkRequirement':
convertToJsonLd(eligibilityToWorkRequirement, [String]),
'employerOverview': convertToJsonLd(employerOverview, [String]),
'employmentType': convertToJsonLd(employmentType, [String]),
'employmentUnit': convertToJsonLd(employmentUnit, [SchemaOrganization]),
'estimatedSalary': convertToJsonLd(estimatedSalary,
[SchemaMonetaryAmount, SchemaMonetaryAmountDistribution, int]),
'experienceInPlaceOfEducation':
convertToJsonLd(experienceInPlaceOfEducation, [bool]),
'experienceRequirements': convertToJsonLd(experienceRequirements,
[SchemaOccupationalExperienceRequirements, String]),
'hiringOrganization': convertToJsonLd(
hiringOrganization, [SchemaOrganization, SchemaPerson]),
'incentiveCompensation':
convertToJsonLd(incentiveCompensation, [String]),
'incentives': convertToJsonLd(incentives, [String]),
'industry': convertToJsonLd(industry, [SchemaDefinedTerm, String]),
'jobBenefits': convertToJsonLd(jobBenefits, [String]),
'jobImmediateStart': convertToJsonLd(jobImmediateStart, [bool]),
'jobLocation': convertToJsonLd(jobLocation, [SchemaPlace]),
'jobLocationType': convertToJsonLd(jobLocationType, [String]),
'jobStartDate': convertToJsonLd(jobStartDate, [String, String]),
'occupationalCategory':
convertToJsonLd(occupationalCategory, [SchemaCategoryCode, String]),
'physicalRequirement': convertToJsonLd(
physicalRequirement, [SchemaDefinedTerm, String, String]),
'qualifications': convertToJsonLd(
qualifications, [SchemaEducationalOccupationalCredential, String]),
'relevantOccupation':
convertToJsonLd(relevantOccupation, [SchemaOccupation]),
'responsibilities': convertToJsonLd(responsibilities, [String]),
'salaryCurrency': convertToJsonLd(salaryCurrency, [String]),
'securityClearanceRequirement':
convertToJsonLd(securityClearanceRequirement, [String, String]),
'sensoryRequirement': convertToJsonLd(
sensoryRequirement, [SchemaDefinedTerm, String, String]),
'skills': convertToJsonLd(skills, [SchemaDefinedTerm, String]),
'specialCommitments': convertToJsonLd(specialCommitments, [String]),
'title': convertToJsonLd(title, [String]),
'totalJobOpenings': convertToJsonLd(totalJobOpenings, [int]),
'validThrough': convertToJsonLd(validThrough, [String, String]),
'workHours': convertToJsonLd(workHours, [String]),
'additionalType': convertToJsonLd(additionalType, [String, String]),
'alternateName': convertToJsonLd(alternateName, [String]),
'description': convertToJsonLd(description, [String, SchemaTextObject]),
'disambiguatingDescription':
convertToJsonLd(disambiguatingDescription, [String]),
'identifier':
convertToJsonLd(identifier, [SchemaPropertyValue, String, String]),
'image': convertToJsonLd(image, [SchemaImageObject, String]),
'mainEntityOfPage':
convertToJsonLd(mainEntityOfPage, [SchemaCreativeWork, String]),
'name': convertToJsonLd(name, [String]),
'potentialAction': convertToJsonLd(potentialAction, [SchemaAction]),
'sameAs': convertToJsonLd(sameAs, [String]),
'subjectOf':
convertToJsonLd(subjectOf, [SchemaCreativeWork, SchemaEvent]),
'url': convertToJsonLd(url, [String]),
});