public async Task <Response <ModelClass> > OperationModelAsync(ModelClass value, CancellationToken cancellationToken = default) { if (value == null) { throw new ArgumentNullException(nameof(value)); } using var message = CreateOperationModelRequest(value); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { ModelClass value0 = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); value0 = ModelClass.DeserializeModelClass(document.RootElement); return(Response.FromValue(value0, message.Response)); }