UserPresence constructor

UserPresence({
  1. String? userId,
  2. String? sessionId,
  3. String? username,
  4. bool? persistence,
  5. StringValue? status,
})

Implementation

factory UserPresence({
  $core.String? userId,
  $core.String? sessionId,
  $core.String? username,
  $core.bool? persistence,
  $1.StringValue? status,
}) {
  final _result = create();
  if (userId != null) {
    _result.userId = userId;
  }
  if (sessionId != null) {
    _result.sessionId = sessionId;
  }
  if (username != null) {
    _result.username = username;
  }
  if (persistence != null) {
    _result.persistence = persistence;
  }
  if (status != null) {
    _result.status = status;
  }
  return _result;
}