DatabaseStatusReplica.fromMap constructor
Implementation
factory DatabaseStatusReplica.fromMap(
Map<String, dynamic> map,
) {
map = {
'index': 0,
'role': "unknown",
'healthy': false,
...map,
};
return DatabaseStatusReplica(
index: map['index'],
role: map['role'].toString(),
healthy: map['healthy'],
replicating: map['replicating'],
lagSeconds: map['lagSeconds']?.toDouble(),
);
}