getAvailableThemes static method
Returns a list of all available user themes.
Implementation
static Future<ListOfUserThemeResponse> getAvailableThemes (
HttpClient client,
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final HttpClientConfig config = HttpClientConfig('GET', '/User/GetAvailableThemes/', params);
config.bodyContentType = null;
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return ListOfUserThemeResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}