updateUser method

Future<UserWithDetails> updateUser({
  1. required String userId,
  2. String? name,
})

Implementation

Future<UserWithDetails> updateUser({
  required String userId,
  String? name,
}) async {
  return await invokeMethod<UserWithDetails>(
    (j) => UserWithDetails.fromJson(j),
    'autogen_updateUser',
    {
      'env': this.env.index,
      'accessToken': this.accessToken,
      'user_id': userId,
      'name': name,
    },
  );
}