PowerState.fromProto constructor

PowerState.fromProto(
  1. IsPoweredResponse pbResponse
)

Implementation

factory PowerState.fromProto(IsPoweredResponse pbResponse) {
  return PowerState(pbResponse.isOn, pbResponse.powerPct);
}