SyncState.fromJson constructor

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

Implementation

factory SyncState.fromJson(Map<String, dynamic> json) {
  return SyncState(
    startingBlock: json['startingBlock'] as int,
    currentBlock: json['currentBlock'] as int,
    highestBlock: json['highestBlock'] as int,
  );
}