toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (revisionsChecked != null) {
json[r'revisions_checked'] = revisionsChecked;
}
if (missingRevisionsFound != null) {
json[r'missing_revisions_found'] = missingRevisionsFound;
}
if (docsRead != null) {
json[r'docs_read'] = docsRead;
}
if (docsWritten != null) {
json[r'docs_written'] = docsWritten;
}
if (changesPending != null) {
json[r'changes_pending'] = changesPending;
}
if (docWriteFailures != null) {
json[r'doc_write_failures'] = docWriteFailures;
}
if (checkpointedSourceSeq != null) {
json[r'checkpointed_source_seq'] = checkpointedSourceSeq;
}
if (startTime != null) {
json[r'start_time'] = startTime!.toUtc().toIso8601String();
}
if (error != null) {
json[r'error'] = error;
}
return json;
}