Redelegation constructor

Redelegation({
  1. String? delegatorAddress,
  2. String? validatorSrcAddress,
  3. String? validatorDstAddress,
  4. Iterable<RedelegationEntry>? entries,
})

Implementation

factory Redelegation({
  $core.String? delegatorAddress,
  $core.String? validatorSrcAddress,
  $core.String? validatorDstAddress,
  $core.Iterable<RedelegationEntry>? entries,
}) {
  final _result = create();
  if (delegatorAddress != null) {
    _result.delegatorAddress = delegatorAddress;
  }
  if (validatorSrcAddress != null) {
    _result.validatorSrcAddress = validatorSrcAddress;
  }
  if (validatorDstAddress != null) {
    _result.validatorDstAddress = validatorDstAddress;
  }
  if (entries != null) {
    _result.entries.addAll(entries);
  }
  return _result;
}