Class PayrollValueConverter
JSON converter for PayrollValue
Inherited Members
Namespace: PayrollEngine.Client.Scripting
Assembly: PayrollEngine.Client.Scripting.dll
Syntax
public class PayrollValueConverter : JsonConverter<PayrollValue>
Constructors
View SourcePayrollValueConverter()
Declaration
public PayrollValueConverter()
Methods
View SourceRead(ref Utf8JsonReader, Type, JsonSerializerOptions)
Read and convert the JSON to T
Declaration
public override PayrollValue Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonReader | reader | The Utf8JsonReader to read from |
| Type | typeToConvert | The Type being converted |
| JsonSerializerOptions | options | The JsonSerializerOptions being used |
Returns
| Type | Description |
|---|---|
| PayrollValue | The value that was converted |
Overrides
Remarks
A converter may throw any Exception, but should throw
Write(Utf8JsonWriter, PayrollValue, JsonSerializerOptions)
Write the value as JSON
Declaration
public override void Write(Utf8JsonWriter writer, PayrollValue value, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonWriter | writer | The Utf8JsonWriter to write to |
| PayrollValue | value | The value to convert |
| JsonSerializerOptions | options | The JsonSerializerOptions being used |
Overrides
Remarks
A converter may throw any Exception, but should throw