updateMessenger method
Future<ClientResponse<MessengerResponse, Errors> >
updateMessenger(
- String messengerId,
- MessengerRequest request
Updates the messenger with the given Id.
@param {String} messengerId The Id of the messenger to update. @param {MessengerRequest} request The request object that contains all the new messenger information. @returns {Promise<ClientResponse
Implementation
Future<ClientResponse<MessengerResponse, Errors>> updateMessenger(
String messengerId, MessengerRequest request) {
return _start<MessengerResponse, Errors>()
.withUri('/api/messenger')
.withUriSegment(messengerId)
.withJSONBody(request)
.withMethod('PUT')
.withResponseHandler(
defaultResponseHandlerBuilder((d) => MessengerResponse.fromJson(d)))
.go();
}