Class GristRecordParser
Unwraps and parses typed cells in API responses
Inherited Members
Namespace: Grist4NET
Assembly: Grist4NET.dll
Syntax
public static class GristRecordParser
Methods
UnwrapFields(IDictionary<string, object?>, GristDocument)
Modifies the supplied dict in-place by replacing UntypedArray's with wrapper types
Declaration
public static void UnwrapFields(IDictionary<string, object?> fields, GristDocument document)
Parameters
| Type | Name | Description |
|---|---|---|
| IDictionary<string, object> | fields | Dictionary that will be modified |
| GristDocument | document | For resolving references/attachments |
UnwrapValue(UntypedArray, GristDocument)
Parses a single typed cell array
Declaration
public static object? UnwrapValue(UntypedArray array, GristDocument document)
Parameters
| Type | Name | Description |
|---|---|---|
| UntypedArray | array | The typed cell value |
| GristDocument | document | For resolving references/attachments |
Returns
| Type | Description |
|---|---|
| object |