toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'secretForeignKeys'] = secretForeignKeys.toList();
  json[r'excludedIds'] = excludedIds;
  if (recipient != null) {
    json[r'recipient'] = recipient;
  }
  if (softwareName != null) {
    json[r'softwareName'] = softwareName;
  }
  if (softwareVersion != null) {
    json[r'softwareVersion'] = softwareVersion;
  }
  json[r'tags'] = tags.toList();
  json[r'contexts'] = contexts;
  if (psy != null) {
    json[r'psy'] = psy;
  }
  if (documentId != null) {
    json[r'documentId'] = documentId;
  }
  if (attachmentId != null) {
    json[r'attachmentId'] = attachmentId;
  }
  if (note != null) {
    json[r'note'] = note;
  }
  return json;
}