VoterDRepScriptHash.fromJson constructor

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

Implementation

factory VoterDRepScriptHash.fromJson(Map<String, dynamic> json) {
  VoterType.fromJson(json.keys.firstOrNull,
      validate: VoterType.drepScriptHash);
  return VoterDRepScriptHash(
      CredentialScript(BytesUtils.fromHexString(json["drep_script_hash"])));
}