toJson method
Implementation
Map<String, dynamic> toJson() => {
"current_block_identifier": current_block_identifier.toJson(),
"current_block_timestamp": current_block_timestamp,
"genesis_block_identifier": genesis_block_identifier.toJson(),
"peers": peers.map((e) => e.toJson()).toList(),
"oldest_block_identifier": oldest_block_identifier?.toJson(),
"sync_status": sync_status?.toJson()
}..removeWhere(
(dynamic key, dynamic value) => key == null || value == null);