getLightSettings method

Future<KeyLightSettings> getLightSettings()

Implementation

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