toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final addFacetToObject = this.addFacetToObject;
  final attachObject = this.attachObject;
  final attachPolicy = this.attachPolicy;
  final attachToIndex = this.attachToIndex;
  final attachTypedLink = this.attachTypedLink;
  final createIndex = this.createIndex;
  final createObject = this.createObject;
  final deleteObject = this.deleteObject;
  final detachFromIndex = this.detachFromIndex;
  final detachObject = this.detachObject;
  final detachPolicy = this.detachPolicy;
  final detachTypedLink = this.detachTypedLink;
  final removeFacetFromObject = this.removeFacetFromObject;
  final updateLinkAttributes = this.updateLinkAttributes;
  final updateObjectAttributes = this.updateObjectAttributes;
  return {
    if (addFacetToObject != null) 'AddFacetToObject': addFacetToObject,
    if (attachObject != null) 'AttachObject': attachObject,
    if (attachPolicy != null) 'AttachPolicy': attachPolicy,
    if (attachToIndex != null) 'AttachToIndex': attachToIndex,
    if (attachTypedLink != null) 'AttachTypedLink': attachTypedLink,
    if (createIndex != null) 'CreateIndex': createIndex,
    if (createObject != null) 'CreateObject': createObject,
    if (deleteObject != null) 'DeleteObject': deleteObject,
    if (detachFromIndex != null) 'DetachFromIndex': detachFromIndex,
    if (detachObject != null) 'DetachObject': detachObject,
    if (detachPolicy != null) 'DetachPolicy': detachPolicy,
    if (detachTypedLink != null) 'DetachTypedLink': detachTypedLink,
    if (removeFacetFromObject != null)
      'RemoveFacetFromObject': removeFacetFromObject,
    if (updateLinkAttributes != null)
      'UpdateLinkAttributes': updateLinkAttributes,
    if (updateObjectAttributes != null)
      'UpdateObjectAttributes': updateObjectAttributes,
  };
}