toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts the object to a JSON representation.

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "genesis_key_delegation": {
      "genesishash": genesisHash.toJson(),
      "genesis_delegate_hash": genesisDelegateHash.toJson(),
      "vrf_keyhash": vrfKeyHash.toJson()
    }
  };
}