CreateSessionRequest constructor

CreateSessionRequest({
  1. Checks? checks,
  2. Map<String, List<int>>? metadata,
  3. RequestChallenges? challenges,
  4. UserAgent? userAgent,
  5. Duration? lifetime,
})

Implementation

factory CreateSessionRequest({
  Checks? checks,
  $core.Map<$core.String, $core.List<$core.int>>? metadata,
  $6.RequestChallenges? challenges,
  $5.UserAgent? userAgent,
  $7.Duration? lifetime,
}) {
  final $result = create();
  if (checks != null) {
    $result.checks = checks;
  }
  if (metadata != null) {
    $result.metadata.addAll(metadata);
  }
  if (challenges != null) {
    $result.challenges = challenges;
  }
  if (userAgent != null) {
    $result.userAgent = userAgent;
  }
  if (lifetime != null) {
    $result.lifetime = lifetime;
  }
  return $result;
}