Key constructor

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

Implementation

factory Key({
  $core.String? id,
  $0.ObjectDetails? details,
  KeyType? type,
  $1.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;
}