CommitteeInfo.fromJson constructor

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

Implementation

CommitteeInfo.fromJson(Map<String, dynamic> json) {
  epoch = json['epoch'];
  validators = [];
  for (var validator in json['validators']) {
    validators.add(List.from(validator).map((e) => e.toString()).toList());
  }
}