toData method

Implementation

DelegationDataArgs toData() {
  var delegation = DelegationValueDataArgs()
    ..delegator_Address = delegator_address
    ..validator_Address = validator_address
    ..shares = shares.toString();

  return DelegationDataArgs()
    ..delegation = delegation
    ..balance = balance.toData();
}