getAvailableThemes static method

Future<ListOfUserThemeResponse> getAvailableThemes(
  1. HttpClient client
)

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);
}