groupSilenceMembers method Null safety

Future<List<JMUserInfo>> groupSilenceMembers(
  1. {required String? groupId}
)

Implementation

Future<List<JMUserInfo>> groupSilenceMembers({
  required String? groupId,
}) async {
  List memberJsons = await _channel.invokeMethod(
      'groupSilenceMembers',
      {
        'groupId': groupId,
      }..removeWhere((key, value) => value == null));
  List<JMUserInfo> members =
      memberJsons.map((json) => JMUserInfo.fromJson(json)).toList();
  return members;
}