SetPowerModeRequest constructor

SetPowerModeRequest({
  1. String? name,
  2. PowerMode? powerMode,
  3. Duration? duration,
  4. Struct? extra,
})

Implementation

factory SetPowerModeRequest({
  $core.String? name,
  PowerMode? powerMode,
  $42.Duration? duration,
  $43.Struct? extra,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (powerMode != null) {
    $result.powerMode = powerMode;
  }
  if (duration != null) {
    $result.duration = duration;
  }
  if (extra != null) {
    $result.extra = extra;
  }
  return $result;
}