UnbondingDelegation constructor

UnbondingDelegation({
  1. String? delegatorAddress,
  2. String? validatorAddress,
  3. Iterable<UnbondingDelegationEntry>? entries,
})

Implementation

factory UnbondingDelegation({
  $core.String? delegatorAddress,
  $core.String? validatorAddress,
  $core.Iterable<UnbondingDelegationEntry>? entries,
}) {
  final _result = create();
  if (delegatorAddress != null) {
    _result.delegatorAddress = delegatorAddress;
  }
  if (validatorAddress != null) {
    _result.validatorAddress = validatorAddress;
  }
  if (entries != null) {
    _result.entries.addAll(entries);
  }
  return _result;
}