ValidatorList.fromAccountInfo constructor

ValidatorList.fromAccountInfo(
  1. AccountInfo info
)

Implementation

factory ValidatorList.fromAccountInfo(final AccountInfo info) {
  final Uint8List buffer = base64.decode((info.data as List)[0]);
  return borsh.deserialize(codec.schema, buffer, ValidatorList.fromJson);
}