Session constructor

Session({
  1. String? sessionId,
  2. String? agentId,
  3. SessionState? authState,
  4. String? userId,
  5. String? userName,
  6. String? loginName,
  7. String? displayName,
  8. ObjectDetails? details,
  9. String? avatarUrl,
})

Implementation

factory Session({
  $core.String? sessionId,
  $core.String? agentId,
  SessionState? authState,
  $core.String? userId,
  $core.String? userName,
  $core.String? loginName,
  $core.String? displayName,
  $8.ObjectDetails? details,
  $core.String? avatarUrl,
}) {
  final $result = create();
  if (sessionId != null) {
    $result.sessionId = sessionId;
  }
  if (agentId != null) {
    $result.agentId = agentId;
  }
  if (authState != null) {
    $result.authState = authState;
  }
  if (userId != null) {
    $result.userId = userId;
  }
  if (userName != null) {
    $result.userName = userName;
  }
  if (loginName != null) {
    $result.loginName = loginName;
  }
  if (displayName != null) {
    $result.displayName = displayName;
  }
  if (details != null) {
    $result.details = details;
  }
  if (avatarUrl != null) {
    $result.avatarUrl = avatarUrl;
  }
  return $result;
}