toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'id'] = id;
  if (rev != null) {
    json[r'rev'] = rev;
  }
  if (deletionDate != null) {
    json[r'deletionDate'] = deletionDate;
  }
  if (name != null) {
    json[r'name'] = name;
  }
  if (startDate != null) {
    json[r'startDate'] = startDate;
  }
  if (endDate != null) {
    json[r'endDate'] = endDate;
  }
  if (status != null) {
    json[r'status'] = status;
  }
  if (logs != null) {
    json[r'logs'] = logs;
  }
  if (userId != null) {
    json[r'userId'] = userId;
  }
  if (startKey != null) {
    json[r'startKey'] = startKey;
  }
  if (startKeyDocId != null) {
    json[r'startKeyDocId'] = startKeyDocId;
  }
  if (processCount != null) {
    json[r'processCount'] = processCount;
  }
  json[r'properties'] = properties.toList();
  return json;
}