Health.fromJson constructor

Health.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Health.fromJson(Map<String, dynamic> json) {
  return Health(
    peers: json['peers'] as int,
    isSyncing: json['isSyncing'] as bool,
    shouldHavePeers: json['shouldHavePeers'] as bool,
  );
}