getLightOptions method

Future<KeyLightOptions> getLightOptions()

Returns the current configuration of a light

Implementation

Future<KeyLightOptions> getLightOptions() {
  return http.get(Uri.parse(formatUrl('lights'))).then((response) {
    return KeyLightOptions.fromJSON(json.decode(response.body));
  });
}