SetSessionRequest constructor

SetSessionRequest({
  1. String? sessionId,
  2. String? sessionToken,
  3. Checks? checks,
  4. Map<String, List<int>>? metadata,
  5. RequestChallenges? challenges,
  6. Duration? lifetime,
})

Implementation

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