Key constructor

Key({
  1. String? id,
  2. ObjectDetails? details,
  3. KeyType? type,
  4. Timestamp? expirationDate,
})

Implementation

factory Key({
  $core.String? id,
  $8.ObjectDetails? details,
  KeyType? type,
  $6.Timestamp? expirationDate,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (details != null) {
    $result.details = details;
  }
  if (type != null) {
    $result.type = type;
  }
  if (expirationDate != null) {
    $result.expirationDate = expirationDate;
  }
  return $result;
}