getLightSettings method
Implementation
Future<KeyLightSettings> getLightSettings() {
return http.get(Uri.parse(formatUrl('lights/settings'))).then((response) {
return KeyLightSettings.fromJSON(json.decode(response.body));
});
}
Future<KeyLightSettings> getLightSettings() {
return http.get(Uri.parse(formatUrl('lights/settings'))).then((response) {
return KeyLightSettings.fromJSON(json.decode(response.body));
});
}