IssueTokenRequest constructor

IssueTokenRequest({
  1. IssueTokenRequest_TokenType? type,
  2. Iterable<String>? scopes,
  3. String? userId,
  4. Int64? expireAt,
  5. String? organizationId,
  6. String? projectId,
  7. String? description,
})

Implementation

factory IssueTokenRequest({
  IssueTokenRequest_TokenType? type,
  $core.Iterable<$core.String>? scopes,
  $core.String? userId,
  $fixnum.Int64? expireAt,
  $core.String? organizationId,
  $core.String? projectId,
  $core.String? description,
}) {
  final result = create();
  if (type != null) result.type = type;
  if (scopes != null) result.scopes.addAll(scopes);
  if (userId != null) result.userId = userId;
  if (expireAt != null) result.expireAt = expireAt;
  if (organizationId != null) result.organizationId = organizationId;
  if (projectId != null) result.projectId = projectId;
  if (description != null) result.description = description;
  return result;
}