toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (contentHash != null) 'contentHash': contentHash!,
if (metadataHash != null) 'metadataHash': metadataHash!,
if (payload != null) 'payload': payload!,
if (queue != null) 'queue': queue!,
if (repositoryError != null) 'repositoryError': repositoryError!,
if (structuredDataHash != null)
'structuredDataHash': structuredDataHash!,
if (type != null) 'type': type!,
};