getFriends method

Future<List<JMUserInfo>> getFriends ()

Implementation

Future<List<JMUserInfo>> getFriends() async {
  List<dynamic> userJsons = await _channel.invokeMethod('getFriends');

  List<JMUserInfo> users = userJsons.map((userMap) => JMUserInfo.fromJson(userMap)).toList();
  return users;
}