toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = id;
if (rev != null) {
json[r'rev'] = rev;
}
if (source_ != null) {
json[r'source'] = source_;
}
if (target != null) {
json[r'target'] = target;
}
if (owner != null) {
json[r'owner'] = owner;
}
if (createTarget != null) {
json[r'create_target'] = createTarget;
}
if (continuous != null) {
json[r'continuous'] = continuous;
}
json[r'doc_ids'] = docIds;
if (replicationState != null) {
json[r'replicationState'] = replicationState;
}
if (replicationStateTime != null) {
json[r'replicationStateTime'] = replicationStateTime!.toUtc().toIso8601String();
}
if (replicationStats != null) {
json[r'replicationStats'] = replicationStats;
}
if (errorCount != null) {
json[r'errorCount'] = errorCount;
}
return json;
}