getUserProperties method

Future<UserProperties> getUserProperties({
  1. required List<MetricType> ofTypes,
})

Implementation

Future<UserProperties> getUserProperties({required List<MetricType> ofTypes}) async {
  final result = await NativeSDKBridgeV3.getUserProperties(
    connectionId: connectionId,
    ofTypes: ofTypes.map((e) => e.toJson()).toList(),
  );

  ExceptionHandler.checkException(result);

  final object = UserProperties.fromJson(result);

  return object;
}