- Namespace
- Statiq
.Common - Containing Type
- IFileExtensions
Syntax
public static Task SerializeJsonAsync(this IFile file, object value, Type inputType, bool createDirectory, JsonSerializerOptions options = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
| Name | Type | Description |
|---|---|---|
| file | IFile | |
| value | object | |
| inputType | Type | |
| createDirectory | bool | |
| options | Json |
|
| cancellationToken | CancellationToken |
Return Value
| Type | Description |
|---|---|
| Task |