SyncInfo.fromJson constructor

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

Implementation

SyncInfo.fromJson(Map<String, dynamic> json)
    : state = SyncState.values[json['state'] ?? 0],
      currentHeight = json['currentHeight'],
      targetHeight = json['targetHeight'];