getSceneList method Null safety

Future<SceneListResponse> getSceneList()

Get a list of scenes in the currently active profile.

Implementation

Future<SceneListResponse> getSceneList() async {
  final response = await command('GetSceneList', null);

  if (response == null) {
    throw Exception('Problem getting current scene');
  }

  return SceneListResponse.fromJson(response.rawResponse);
}