toJsonLd method

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

Serialize SchemaPatient to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'Patient',
      'diagnosis': convertToJsonLd(diagnosis, [SchemaMedicalCondition]),
      'drug': convertToJsonLd(drug, [SchemaDrug]),
      'additionalName': convertToJsonLd(additionalName, [String]),
      'address': convertToJsonLd(address, [SchemaPostalAddress, String]),
      'affiliation': convertToJsonLd(affiliation, [SchemaOrganization]),
      'agentInteractionStatistic': convertToJsonLd(
          agentInteractionStatistic, [SchemaInteractionCounter]),
      'alumniOf': convertToJsonLd(
          alumniOf, [SchemaEducationalOrganization, SchemaOrganization]),
      'award': convertToJsonLd(award, [String]),
      'awards': convertToJsonLd(awards, [String]),
      'birthDate': convertToJsonLd(birthDate, [String]),
      'birthPlace': convertToJsonLd(birthPlace, [SchemaPlace]),
      'brand': convertToJsonLd(brand, [SchemaBrand, SchemaOrganization]),
      'callSign': convertToJsonLd(callSign, [String]),
      'children': convertToJsonLd(children, [SchemaPerson]),
      'colleague': convertToJsonLd(colleague, [SchemaPerson, String]),
      'colleagues': convertToJsonLd(colleagues, [SchemaPerson]),
      'contactPoint': convertToJsonLd(contactPoint, [SchemaContactPoint]),
      'contactPoints': convertToJsonLd(contactPoints, [SchemaContactPoint]),
      'deathDate': convertToJsonLd(deathDate, [String]),
      'deathPlace': convertToJsonLd(deathPlace, [SchemaPlace]),
      'duns': convertToJsonLd(duns, [String]),
      'email': convertToJsonLd(email, [String]),
      'familyName': convertToJsonLd(familyName, [String]),
      'faxNumber': convertToJsonLd(faxNumber, [String]),
      'follows': convertToJsonLd(follows, [SchemaPerson]),
      'funder': convertToJsonLd(funder, [SchemaOrganization, SchemaPerson]),
      'funding': convertToJsonLd(funding, [SchemaGrant]),
      'gender': convertToJsonLd(gender, [SchemaGenderType, String]),
      'givenName': convertToJsonLd(givenName, [String]),
      'globalLocationNumber': convertToJsonLd(globalLocationNumber, [String]),
      'hasCertification':
          convertToJsonLd(hasCertification, [SchemaCertification]),
      'hasCredential': convertToJsonLd(hasCredential, [SchemaCredential]),
      'hasOccupation': convertToJsonLd(hasOccupation, [SchemaOccupation]),
      'hasOfferCatalog':
          convertToJsonLd(hasOfferCatalog, [SchemaOfferCatalog]),
      'hasPOS': convertToJsonLd(hasPOS, [SchemaPlace]),
      'height':
          convertToJsonLd(height, [SchemaDistance, SchemaQuantitativeValue]),
      'homeLocation':
          convertToJsonLd(homeLocation, [SchemaContactPoint, SchemaPlace]),
      'honorificPrefix': convertToJsonLd(honorificPrefix, [String]),
      'honorificSuffix': convertToJsonLd(honorificSuffix, [String]),
      'interactionStatistic':
          convertToJsonLd(interactionStatistic, [SchemaInteractionCounter]),
      'isicV4': convertToJsonLd(isicV4, [String]),
      'jobTitle': convertToJsonLd(jobTitle, [SchemaDefinedTerm, String]),
      'knows': convertToJsonLd(knows, [SchemaPerson]),
      'knowsAbout': convertToJsonLd(knowsAbout, [String, SchemaThing]),
      'knowsLanguage':
          convertToJsonLd(knowsLanguage, [SchemaLanguage, String]),
      'lifeEvent': convertToJsonLd(lifeEvent, [SchemaEvent]),
      'makesOffer': convertToJsonLd(makesOffer, [SchemaOffer]),
      'memberOf': convertToJsonLd(memberOf, [
        SchemaMemberProgramTier,
        SchemaOrganization,
        SchemaProgramMembership
      ]),
      'naics': convertToJsonLd(naics, [String]),
      'nationality': convertToJsonLd(nationality, [SchemaCountry]),
      'netWorth': convertToJsonLd(
          netWorth, [SchemaMonetaryAmount, SchemaPriceSpecification]),
      'owns': convertToJsonLd(owns, [SchemaThing]),
      'parent': convertToJsonLd(parent, [SchemaPerson]),
      'parents': convertToJsonLd(parents, [SchemaPerson]),
      'performerIn': convertToJsonLd(performerIn, [SchemaEvent]),
      'pronouns': convertToJsonLd(
          pronouns, [SchemaDefinedTerm, String, SchemaStructuredValue]),
      'publishingPrinciples':
          convertToJsonLd(publishingPrinciples, [SchemaCreativeWork, String]),
      'relatedTo': convertToJsonLd(relatedTo, [SchemaPerson]),
      'seeks': convertToJsonLd(seeks, [SchemaDemand]),
      'sibling': convertToJsonLd(sibling, [SchemaPerson]),
      'siblings': convertToJsonLd(siblings, [SchemaPerson]),
      'skills': convertToJsonLd(skills, [SchemaDefinedTerm, String]),
      'sponsor': convertToJsonLd(sponsor, [SchemaOrganization, SchemaPerson]),
      'spouse': convertToJsonLd(spouse, [SchemaPerson]),
      'taxID': convertToJsonLd(taxID, [String]),
      'telephone': convertToJsonLd(telephone, [String]),
      'vatID': convertToJsonLd(vatID, [String]),
      'weight':
          convertToJsonLd(weight, [SchemaMass, SchemaQuantitativeValue]),
      'workLocation':
          convertToJsonLd(workLocation, [SchemaContactPoint, SchemaPlace]),
      'worksFor': convertToJsonLd(worksFor, [SchemaOrganization]),
    });