GenesisKeyDelegation.fromJson constructor
GenesisKeyDelegation.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GenesisKeyDelegation.fromJson(Map<String, dynamic> json) {
final Map<String, dynamic> correctJson =
json['genesis_key_delegation'] ?? json;
return GenesisKeyDelegation(
genesisDelegateHash:
GenesisDelegateHash.fromHex(correctJson['genesis_delegate_hash']),
genesisHash: GenesisHash.fromHex(correctJson['genesishash']),
vrfKeyHash: VRFKeyHash.fromHex(correctJson['vrf_keyhash']));
}