DVPair constructor

DVPair({
  1. String? delegatorAddress,
  2. String? validatorAddress,
})

Implementation

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