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