getUserAttributesByKeys2 method

Future<List<RtmAttribute>> getUserAttributesByKeys2(
  1. String userId,
  2. List<String> attributeKeys
)

Gets the attributes of a specified user using attribute keys.

Implementation

Future<List<RtmAttribute>> getUserAttributesByKeys2(
    String userId, List<String> attributeKeys) async {
  return List<Map>.from(await _callNative("getUserAttributesByKeys",
          {'userId': userId, 'attributeKeys': attributeKeys}))
      .map((e) => RtmAttribute.fromJson(e))
      .toList();
}