DatabaseInfo.fromJSON constructor
DatabaseInfo.fromJSON(
- Map<String, dynamic> data
)
Implementation
factory DatabaseInfo.fromJSON(Map<String, dynamic> data) {
return DatabaseInfo(
(data["id"] as String),
q: (data["q"] as int?),
n: (data["n"] as int?),
w: (data["w"] as int?),
r: (data["r"] as int?),
updateSeq: (data["updateSeq"] as String?),
fileSize: (data["fileSize"] as int?),
externalSize: (data["externalSize"] as int?),
activeSize: (data["activeSize"] as int?),
docs: (data["docs"] as int?),
);
}