DataMachineKey constructor

DataMachineKey({
  1. String? keyId,
  2. String? userId,
  3. KeyType? type,
  4. Timestamp? expirationDate,
  5. List<int>? publicKey,
})

Implementation

factory DataMachineKey({
  $core.String? keyId,
  $core.String? userId,
  $15.KeyType? type,
  $6.Timestamp? expirationDate,
  $core.List<$core.int>? publicKey,
}) {
  final $result = create();
  if (keyId != null) {
    $result.keyId = keyId;
  }
  if (userId != null) {
    $result.userId = userId;
  }
  if (type != null) {
    $result.type = type;
  }
  if (expirationDate != null) {
    $result.expirationDate = expirationDate;
  }
  if (publicKey != null) {
    $result.publicKey = publicKey;
  }
  return $result;
}