getGroupOptionalConversations static method
Future<CEListOfGroupOptionalConversationResponse>
getGroupOptionalConversations(
- HttpClient client,
- String groupId
Gets a list of available optional conversation channels and their settings.
Implementation
static Future<CEListOfGroupOptionalConversationResponse> getGroupOptionalConversations (
HttpClient client,
String groupId,
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _groupId = '$groupId';
final HttpClientConfig config = HttpClientConfig('GET', '/GroupV2/$_groupId/OptionalConversations/', params);
config.bodyContentType = null;
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return CEListOfGroupOptionalConversationResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}