toData method

Implementation

SignatureV2DataArgs toData() {
  var signature = SignatureV2DataArgs();

  signature.key = key;
  signature.sequence = sequence.toString();
  signature.data = data!.toData();
  return signature;
}