DeviceCredential constructor

DeviceCredential({
  1. PublicKeyCredential? publicKey,
  2. Timestamp? expirationTime,
})

Implementation

factory DeviceCredential({
  PublicKeyCredential? publicKey,
  $2.Timestamp? expirationTime,
}) {
  final $result = create();
  if (publicKey != null) {
    $result.publicKey = publicKey;
  }
  if (expirationTime != null) {
    $result.expirationTime = expirationTime;
  }
  return $result;
}