Device constructor

Device({
  1. String? deviceId,
  2. String? chainId,
  3. String? boutiqueId,
  4. bool? status,
  5. String? password,
  6. Timestamp? timestamp,
  7. HardwareInfo? hardwareInfo,
})

Implementation

factory Device({
  $core.String? deviceId,
  $core.String? chainId,
  $core.String? boutiqueId,
  $core.bool? status,
  $core.String? password,
  $17.Timestamp? timestamp,
  HardwareInfo? hardwareInfo,
}) {
  final $result = create();
  if (deviceId != null) {
    $result.deviceId = deviceId;
  }
  if (chainId != null) {
    $result.chainId = chainId;
  }
  if (boutiqueId != null) {
    $result.boutiqueId = boutiqueId;
  }
  if (status != null) {
    $result.status = status;
  }
  if (password != null) {
    $result.password = password;
  }
  if (timestamp != null) {
    $result.timestamp = timestamp;
  }
  if (hardwareInfo != null) {
    $result.hardwareInfo = hardwareInfo;
  }
  return $result;
}