encode static method
Implementation
static Map<String, dynamic> encode(ReplicatorDocument value) {
Map<String, dynamic> entityAsMap = {
"id" : value.id,
"rev" : value.rev,
"source" : value.source == null ? null : Remote.encode(value.source!),
"target" : value.target == null ? null : Remote.encode(value.target!),
"owner" : value.owner,
"create_target" : value.create_target,
"continuous" : value.continuous,
"doc_ids" : value.doc_ids?.map((x0) => x0).toList(),
"replicationState" : value.replicationState,
"replicationStateTime" : value.replicationStateTime,
"replicationStats" : value.replicationStats == null ? null : ReplicationStats.encode(value.replicationStats!),
"errorCount" : value.errorCount,
"revsInfo" : value.revsInfo?.map((x0) => x0.map((k1, v1) => MapEntry(k1, v1))).toList(),
"revHistory" : value.revHistory?.map((k0, v0) => MapEntry(k0, v0))
};
return entityAsMap;
}