StakeAuthorization constructor

StakeAuthorization({
  1. Coin? maxTokens,
  2. StakeAuthorization_Validators? allowList,
  3. StakeAuthorization_Validators? denyList,
  4. AuthorizationType? authorizationType,
})

Implementation

factory StakeAuthorization({
  $6.Coin? maxTokens,
  StakeAuthorization_Validators? allowList,
  StakeAuthorization_Validators? denyList,
  AuthorizationType? authorizationType,
}) {
  final _result = create();
  if (maxTokens != null) {
    _result.maxTokens = maxTokens;
  }
  if (allowList != null) {
    _result.allowList = allowList;
  }
  if (denyList != null) {
    _result.denyList = denyList;
  }
  if (authorizationType != null) {
    _result.authorizationType = authorizationType;
  }
  return _result;
}