toData method

Implementation

RedelegationDataArgs toData() {
  var val = RedelegationValueCommonArgs()
    ..delegator_Address = delegator_address
    ..validator_Dst_Address = validator_dst_address
    ..validator_Src_Address = validator_src_address;

  return RedelegationDataArgs()
    ..redelegation = val
    ..entries = entries.map((e) => e.toData()).toList();
}