Key constructor

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

Implementation

factory Key({
  $core.String? id,
  $7.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;
}