Session constructor

Session({
  1. String? id,
  2. Timestamp? creationDate,
  3. Timestamp? changeDate,
  4. Int64? sequence,
  5. Factors? factors,
  6. Map<String, List<int>>? metadata,
  7. UserAgent? userAgent,
  8. Timestamp? expirationDate,
})

Implementation

factory Session({
  $core.String? id,
  $2.Timestamp? creationDate,
  $2.Timestamp? changeDate,
  $fixnum.Int64? sequence,
  Factors? factors,
  $core.Map<$core.String, $core.List<$core.int>>? metadata,
  UserAgent? userAgent,
  $2.Timestamp? expirationDate,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (creationDate != null) {
    $result.creationDate = creationDate;
  }
  if (changeDate != null) {
    $result.changeDate = changeDate;
  }
  if (sequence != null) {
    $result.sequence = sequence;
  }
  if (factors != null) {
    $result.factors = factors;
  }
  if (metadata != null) {
    $result.metadata.addAll(metadata);
  }
  if (userAgent != null) {
    $result.userAgent = userAgent;
  }
  if (expirationDate != null) {
    $result.expirationDate = expirationDate;
  }
  return $result;
}