PersonalAccessToken constructor

PersonalAccessToken({
  1. String? id,
  2. ObjectDetails? details,
  3. Timestamp? expirationDate,
  4. Iterable<String>? scopes,
})

Implementation

factory PersonalAccessToken({
  $core.String? id,
  $8.ObjectDetails? details,
  $6.Timestamp? expirationDate,
  $core.Iterable<$core.String>? scopes,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (details != null) {
    $result.details = details;
  }
  if (expirationDate != null) {
    $result.expirationDate = expirationDate;
  }
  if (scopes != null) {
    $result.scopes.addAll(scopes);
  }
  return $result;
}