createMetaData method
createMetaData
Implementation
Future<Map<String, String>> createMetaData(
Map<String, String> metaDataMap) async {
sbLog.i(StackTrace.current, 'metaDataMap: $metaDataMap');
if (metaDataMap.isEmpty) {
throw InvalidParameterException();
}
final result =
await chat.apiClient.send(UserMetaDataCreateRequest(chat, metaDataMap));
final map = Map<String, String>.from(result);
metaData.addAll(map);
return map;
}