- Namespace
- Statiq
.Common - Containing Type
- IFileExtensions
Syntax
public static ValueTask<object> DeserializeJsonAsync(this IFile file, Type returnType, JsonSerializerOptions options = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
| Name | Type | Description |
|---|---|---|
| file | IFile | |
| returnType | Type | |
| options | Json |
|
| cancellationToken | CancellationToken |
Return Value
| Type | Description |
|---|---|
| ValueTask |