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