toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (id != null) {
    json[r'id'] = id;
  }
  if (transactionId != null) {
    json[r'transactionId'] = transactionId;
  }
  json[r'identifiers'] = identifiers;
  if (batchId != null) {
    json[r'batchId'] = batchId;
  }
  json[r'healthElementsIds'] = healthcareElementsIds.toList();
  json[r'canvasesIds'] = canvasesIds.toList();
  if (index != null) {
    json[r'index'] = index;
  }
  json[r'content'] = content;
  if (valueDate != null) {
    json[r'valueDate'] = valueDate;
  }
  if (openingDate != null) {
    json[r'openingDate'] = openingDate;
  }
  if (closingDate != null) {
    json[r'closingDate'] = closingDate;
  }
  if (created != null) {
    json[r'created'] = created;
  }
  if (modified != null) {
    json[r'modified'] = modified;
  }
  if (endOfLife != null) {
    json[r'endOfLife'] = endOfLife;
  }
  if (author != null) {
    json[r'author'] = author;
  }
  if (responsible != null) {
    json[r'responsible'] = responsible;
  }
  if (comment != null) {
    json[r'comment'] = comment;
  }
  json[r'qualifiedLinks'] = qualifiedLinks;
  json[r'codes'] = codes.toList();
  json[r'labels'] = labels.toList();
  return json;
}