toJSON method

dynamic toJSON()

Implementation

toJSON() {
  return {
    "delegations": delegations.map((signedDelegation) {
      return signedDelegation.toJson();
    }).toList(),
    "publicKey": publicKey.toHex(),
  };
}