updateUserContact function
Implementation
Future<bool?> updateUserContact(String id, ContactRequest request) async {
try {
final updateContactResponse = await _platform.updateUserContact(id, request.toJson());
if (updateContactResponse == null) {
throw Exception('Unable to update contact.');
}
return updateContactResponse;
} catch (error, stackTrace) {
Error.throwWithStackTrace(error, stackTrace);
}
}