toJsonLd method

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

Serialize SchemaWorkBasedProgram to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      '@context': 'https://schema.org',
      '@type': 'WorkBasedProgram',
      'occupationalCategory':
          convertToJsonLd(occupationalCategory, [SchemaCategoryCode, String]),
      'trainingSalary':
          convertToJsonLd(trainingSalary, [SchemaMonetaryAmountDistribution]),
      'applicationDeadline': convertToJsonLd(applicationDeadline, [String]),
      'applicationStartDate': convertToJsonLd(applicationStartDate, [String]),
      'dayOfWeek': convertToJsonLd(dayOfWeek, [SchemaDayOfWeek]),
      'educationalCredentialAwarded': convertToJsonLd(
          educationalCredentialAwarded,
          [SchemaEducationalOccupationalCredential, String, String]),
      'educationalProgramMode':
          convertToJsonLd(educationalProgramMode, [String, String]),
      'endDate': convertToJsonLd(endDate, [String, String]),
      'financialAidEligible':
          convertToJsonLd(financialAidEligible, [SchemaDefinedTerm, String]),
      'hasCourse': convertToJsonLd(hasCourse, [SchemaCourse]),
      'maximumEnrollment': convertToJsonLd(maximumEnrollment, [int]),
      'numberOfCredits':
          convertToJsonLd(numberOfCredits, [SchemaStructuredValue, int]),
      'occupationalCredentialAwarded': convertToJsonLd(
          occupationalCredentialAwarded,
          [SchemaEducationalOccupationalCredential, String, String]),
      'offers': convertToJsonLd(offers, [SchemaDemand, SchemaOffer]),
      'programPrerequisites': convertToJsonLd(programPrerequisites, [
        SchemaAlignmentObject,
        SchemaCourse,
        SchemaEducationalOccupationalCredential,
        String
      ]),
      'programType':
          convertToJsonLd(programType, [SchemaDefinedTerm, String]),
      'provider':
          convertToJsonLd(provider, [SchemaOrganization, SchemaPerson]),
      'salaryUponCompletion': convertToJsonLd(
          salaryUponCompletion, [SchemaMonetaryAmountDistribution]),
      'startDate': convertToJsonLd(startDate, [String, String]),
      'termDuration': convertToJsonLd(termDuration, [SchemaDuration]),
      'termsPerYear': convertToJsonLd(termsPerYear, [int]),
      'timeOfDay': convertToJsonLd(timeOfDay, [String]),
      'timeToComplete': convertToJsonLd(timeToComplete, [SchemaDuration]),
      'typicalCreditsPerTerm': convertToJsonLd(
          typicalCreditsPerTerm, [SchemaStructuredValue, int]),
      '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]),
    });