createChat method
Создание нового чата.
Implementation
Future<SjChatDto> createChat(SjChatSendsDto chat) async {
final result = await $httpPost(urls.apiMsgsGet, {
'chat': chat.toJson(),
});
if (!result.containsKey('chat')) {
throw const FormatException('invalid response');
}
final res = result['chat'] as Map;
return SjChatDto.fromJson(res);
}