getBlockedGroupList method Null safety

Future<List<JMGroupInfo>> getBlockedGroupList()

Implementation

Future<List<JMGroupInfo>> getBlockedGroupList() async {
  List resJson = await _channel.invokeMethod('getBlockedGroupList');
  List<JMGroupInfo> res =
      resJson.map((json) => JMGroupInfo.fromJson(json)).toList();
  return res;
}