toJsonLd method

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

Serialize SchemaAppendAction to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      '@context': 'https://schema.org',
      '@type': 'AppendAction',
      'toLocation': convertToJsonLd(toLocation, [SchemaPlace]),
      'actionStatus': convertToJsonLd(actionStatus, [SchemaActionStatusType]),
      'agent': convertToJsonLd(agent, [SchemaOrganization, SchemaPerson]),
      'endTime': convertToJsonLd(endTime, [String, String]),
      'error': convertToJsonLd(error, [SchemaThing]),
      'instrument': convertToJsonLd(instrument, [SchemaThing]),
      'location': convertToJsonLd(location,
          [SchemaPlace, SchemaPostalAddress, String, SchemaVirtualLocation]),
      'object': convertToJsonLd(object, [SchemaThing]),
      'participant':
          convertToJsonLd(participant, [SchemaOrganization, SchemaPerson]),
      'provider':
          convertToJsonLd(provider, [SchemaOrganization, SchemaPerson]),
      'result': convertToJsonLd(result, [SchemaThing]),
      'startTime': convertToJsonLd(startTime, [String, String]),
      'target': convertToJsonLd(target, [SchemaEntryPoint, 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]),
      'collection': convertToJsonLd(collection, [SchemaThing]),
      'targetCollection': convertToJsonLd(targetCollection, [SchemaThing]),
    });