toJsonLd method
Serialize SchemaPatient to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
'@context': 'https://schema.org',
'@type': 'Patient',
'diagnosis': convertToJsonLd(diagnosis, [SchemaMedicalCondition]),
'drug': convertToJsonLd(drug, [SchemaDrug]),
'healthCondition':
convertToJsonLd(healthCondition, [SchemaMedicalCondition]),
'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, [SchemaEducationalOccupationalCredential]),
'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, String, SchemaThing]),
'knowsLanguage':
convertToJsonLd(knowsLanguage, [SchemaLanguage, String]),
'makesOffer': convertToJsonLd(makesOffer, [SchemaOffer]),
'memberOf': convertToJsonLd(
memberOf, [SchemaOrganization, SchemaProgramMembership]),
'naics': convertToJsonLd(naics, [String]),
'nationality': convertToJsonLd(nationality, [SchemaCountry]),
'netWorth': convertToJsonLd(
netWorth, [SchemaMonetaryAmount, SchemaPriceSpecification]),
'owns': convertToJsonLd(owns, [SchemaOwnershipInfo, SchemaProduct]),
'parent': convertToJsonLd(parent, [SchemaPerson]),
'parents': convertToJsonLd(parents, [SchemaPerson]),
'performerIn': convertToJsonLd(performerIn, [SchemaEvent]),
'publishingPrinciples':
convertToJsonLd(publishingPrinciples, [SchemaCreativeWork, String]),
'relatedTo': convertToJsonLd(relatedTo, [SchemaPerson]),
'seeks': convertToJsonLd(seeks, [SchemaDemand]),
'sibling': convertToJsonLd(sibling, [SchemaPerson]),
'siblings': convertToJsonLd(siblings, [SchemaPerson]),
'sponsor': convertToJsonLd(sponsor, [SchemaOrganization, SchemaPerson]),
'spouse': convertToJsonLd(spouse, [SchemaPerson]),
'taxID': convertToJsonLd(taxID, [String]),
'telephone': convertToJsonLd(telephone, [String]),
'vatID': convertToJsonLd(vatID, [String]),
'weight': convertToJsonLd(weight, [SchemaQuantitativeValue]),
'workLocation':
convertToJsonLd(workLocation, [SchemaContactPoint, SchemaPlace]),
'worksFor': convertToJsonLd(worksFor, [SchemaOrganization]),
'audienceType': convertToJsonLd(audienceType, [String]),
'geographicArea':
convertToJsonLd(geographicArea, [SchemaAdministrativeArea]),
'requiredGender': convertToJsonLd(requiredGender, [String]),
'requiredMaxAge': convertToJsonLd(requiredMaxAge, [int]),
'requiredMinAge': convertToJsonLd(requiredMinAge, [int]),
'suggestedAge':
convertToJsonLd(suggestedAge, [SchemaQuantitativeValue]),
'suggestedGender':
convertToJsonLd(suggestedGender, [SchemaGenderType, String]),
'suggestedMaxAge': convertToJsonLd(suggestedMaxAge, [int]),
'suggestedMeasurement':
convertToJsonLd(suggestedMeasurement, [SchemaQuantitativeValue]),
'suggestedMinAge': convertToJsonLd(suggestedMinAge, [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]),
});