ReplicationStats.fromJSON constructor

ReplicationStats.fromJSON(
  1. Map<String, dynamic> data
)

Implementation

factory ReplicationStats.fromJSON(Map<String, dynamic> data) {
	return ReplicationStats(
		revisionsChecked: (data["revisionsChecked"] as int?),
		missingRevisionsFound: (data["missingRevisionsFound"] as int?),
		docsRead: (data["docsRead"] as int?),
		docsWritten: (data["docsWritten"] as int?),
		changesPending: (data["changesPending"] as int?),
		docWriteFailures: (data["docWriteFailures"] as int?),
		checkpointedSourceSeq: (data["checkpointedSourceSeq"] as String?),
		startTime: (data["startTime"] as String?),
		error: (data["error"] as String?)
	);
}