getLightAccessoryInfo method
Implementation
Future<KeyLightInfo> getLightAccessoryInfo() {
return http.get(Uri.parse(formatUrl('accessory-info'))).then((response) {
return KeyLightInfo.fromJSON(json.decode(response.body));
});
}
Future<KeyLightInfo> getLightAccessoryInfo() {
return http.get(Uri.parse(formatUrl('accessory-info'))).then((response) {
return KeyLightInfo.fromJSON(json.decode(response.body));
});
}