WitnessesAccount.fromJson constructor

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

Implementation

factory WitnessesAccount.fromJson(Map<String, dynamic> json) {
  return WitnessesAccount(
    address: TronAddress(json['address']),
    voteCount: BigintUtils.tryParse(json['voteCount']),
    url: json['url'],
    totalProduced: json['totalProduced'],
    totalMissed: json['totalMissed'],
    latestBlockNum: json['latestBlockNum'],
    latestSlotNum: json['latestSlotNum'],
    isJobs: json['isJobs'],
  );
}