modifyProperties method
Future<User>
modifyProperties(
- String sdkId,
- String userId,
- List<
EncryptedPropertyStub> ? properties
Implementation
Future<User> modifyProperties(String sdkId, String userId, List<EncryptedPropertyStub>? properties) async {
final res = await _methodChannel.invokeMethod<String>(
'UserApi.modifyProperties',
{
"sdkId": sdkId,
"userId": jsonEncode(userId),
"properties": jsonEncode(properties?.map((x0) => EncryptedPropertyStub.encode(x0)).toList()),
}
);
if (res == null) throw AssertionError("received null result from platform method modifyProperties");
final parsedResJson = jsonDecode(res);
return User.fromJSON(parsedResJson);
}