sendLightInfraredSignal method
Implementation
Future<LightState> sendLightInfraredSignal({
required Appliance appliance,
required Button button,
}) async {
final requestData = {'button': button.name};
final response =
await _post('appliances/${appliance.id}/light', data: requestData);
final json = jsonDecode(utf8.decode(response.bodyBytes));
final lightState = LightState.fromJson(json);
return lightState;
}