toAmino method

Implementation

RedelegationAminoArgs toAmino() {
  var val = RedelegationValueCommonArgs()
    ..delegator_Address = delegator_address
    ..validator_Dst_Address = validator_dst_address
    ..validator_Src_Address = validator_src_address;

  return RedelegationAminoArgs()
    ..redelegation = val
    ..entries = entries.map((e) => e.toAmino()).toList();
}