updateUser method
Future<QBUser?>
updateUser(
{ - String? login,
- String? newPassword,
- String? password,
- String? email,
- int? blobId,
- int? externalUserId,
- int? facebookId,
- String? fullName,
- String? phone,
- String? website,
- String? customData,
- List<String>? tags,
})
Implementation
Future<QBUser?> updateUser(
{String? login,
String? newPassword,
String? password,
String? email,
int? blobId,
int? externalUserId,
int? facebookId,
int? twitterId,
String? fullName,
String? phone,
String? website,
String? customData,
List<String>? tags}) async {
Map<String, Object> data = Map();
if (login != null) {
data["login"] = login;
}
if (newPassword != null) {
data["newPassword"] = newPassword;
}
if (password != null) {
data["password"] = password;
}
if (email != null) {
data["email"] = email;
}
if (blobId != null) {
data["blobId"] = blobId;
}
if (externalUserId != null) {
data["externalUserId"] = externalUserId;
}
if (facebookId != null) {
data["facebookId"] = facebookId;
}
if (twitterId != null) {
data["twitterId"] = twitterId;
}
if (fullName != null) {
data["fullName"] = fullName;
}
if (phone != null) {
data["phone"] = phone;
}
if (website != null) {
data["website"] = website;
}
if (customData != null) {
data["customData"] = customData;
}
if (tags != null) {
data["tags"] = tags;
}
Map<Object?, Object?> map = await _usersModule.invokeMethod(UPDATE_METHOD, data);
QBUser? qbUser = QBUserMapper.mapToQBUser(map);
return qbUser;
}