searchHelpArticles static method

Search for Help Articles.

Implementation

static Future<IReadOnlyCollectionOfContentItemPublicContractResponse> searchHelpArticles (
    HttpClient client,
    String searchtext,
    String size,
) async {
    final Map<String, dynamic> params = Map<String, dynamic>();
    final String _searchtext = '$searchtext';
    final String _size = '$size';
    final HttpClientConfig config = HttpClientConfig('GET', '/Content/SearchHelpArticles/$_searchtext/$_size/', params);
    config.bodyContentType = null;
    final HttpResponse response = await client.request(config);
    if(response.statusCode == 200) {
        return IReadOnlyCollectionOfContentItemPublicContractResponse.asyncFromJson(response.mappedBody);
    }
    throw Exception(response.mappedBody);
}