PowerProfile constructor

PowerProfile({
  1. PowerProfileType? powerProfileType,
  2. double? frequency,
  3. double? period,
  4. Map<String, String>? additionalInformation,
})

Implementation

factory PowerProfile({
  PowerProfileType? powerProfileType,
  $core.double? frequency,
  $core.double? period,
  $core.Map<$core.String, $core.String>? additionalInformation,
}) {
  final $result = create();
  if (powerProfileType != null) {
    $result.powerProfileType = powerProfileType;
  }
  if (frequency != null) {
    $result.frequency = frequency;
  }
  if (period != null) {
    $result.period = period;
  }
  if (additionalInformation != null) {
    $result.additionalInformation.addAll(additionalInformation);
  }
  return $result;
}