Delegation constructor

Delegation({
  1. String? delegatorAddress,
  2. String? validatorAddress,
  3. String? shares,
})

Implementation

factory Delegation({
  $core.String? delegatorAddress,
  $core.String? validatorAddress,
  $core.String? shares,
}) {
  final _result = create();
  if (delegatorAddress != null) {
    _result.delegatorAddress = delegatorAddress;
  }
  if (validatorAddress != null) {
    _result.validatorAddress = validatorAddress;
  }
  if (shares != null) {
    _result.shares = shares;
  }
  return _result;
}