setMessagesReadStatus method
Implementation
Future<List<Message>> setMessagesReadStatus(String sdkId, List<String> entityIds, int? time, bool readStatus, String? userId) async {
final res = await _methodChannel.invokeMethod<String>(
'MessageApi.tryAndRecover.setMessagesReadStatus',
{
"sdkId": sdkId,
"entityIds": jsonEncode(entityIds.map((x0) => x0).toList()),
"time": jsonEncode(time),
"readStatus": jsonEncode(readStatus),
"userId": jsonEncode(userId),
}
);
if (res == null) throw AssertionError("received null result from platform method setMessagesReadStatus");
final parsedResJson = jsonDecode(res);
return (parsedResJson as List<dynamic>).map((x1) => Message.fromJSON(x1) ).toList();
}