getLightSettings method

Future<KeyLightSettings> getLightSettings()

Returns some extra information about a light

Implementation

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