toJsonLd method
Serialize SchemaCDCPMDRecord to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
'@context': 'https://schema.org',
'@type': 'CDCPMDRecord',
'cvdCollectionDate':
convertToJsonLd(cvdCollectionDate, [String, String]),
'cvdFacilityCounty': convertToJsonLd(cvdFacilityCounty, [String]),
'cvdFacilityId': convertToJsonLd(cvdFacilityId, [String]),
'cvdNumBeds': convertToJsonLd(cvdNumBeds, [int]),
'cvdNumBedsOcc': convertToJsonLd(cvdNumBedsOcc, [int]),
'cvdNumC19Died': convertToJsonLd(cvdNumC19Died, [int]),
'cvdNumC19HOPats': convertToJsonLd(cvdNumC19HOPats, [int]),
'cvdNumC19HospPats': convertToJsonLd(cvdNumC19HospPats, [int]),
'cvdNumC19MechVentPats': convertToJsonLd(cvdNumC19MechVentPats, [int]),
'cvdNumC19OFMechVentPats':
convertToJsonLd(cvdNumC19OFMechVentPats, [int]),
'cvdNumC19OverflowPats': convertToJsonLd(cvdNumC19OverflowPats, [int]),
'cvdNumICUBeds': convertToJsonLd(cvdNumICUBeds, [int]),
'cvdNumICUBedsOcc': convertToJsonLd(cvdNumICUBedsOcc, [int]),
'cvdNumTotBeds': convertToJsonLd(cvdNumTotBeds, [int]),
'cvdNumVent': convertToJsonLd(cvdNumVent, [int]),
'cvdNumVentUse': convertToJsonLd(cvdNumVentUse, [int]),
'datePosted': convertToJsonLd(datePosted, [String, 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]),
});