ScienceData constructor

ScienceData({
  1. int? sample,
  2. ScienceState? state,
  3. double? co2,
  4. double? humidity,
  5. double? temperature,
  6. Version? version,
})

Implementation

factory ScienceData({
  $core.int? sample,
  ScienceState? state,
  $core.double? co2,
  $core.double? humidity,
  $core.double? temperature,
  $0.Version? version,
}) {
  final $result = create();
  if (sample != null) {
    $result.sample = sample;
  }
  if (state != null) {
    $result.state = state;
  }
  if (co2 != null) {
    $result.co2 = co2;
  }
  if (humidity != null) {
    $result.humidity = humidity;
  }
  if (temperature != null) {
    $result.temperature = temperature;
  }
  if (version != null) {
    $result.version = version;
  }
  return $result;
}