Method ToNestedColumnWithDefault
ToNestedColumnWithDefault<T>(T, T, bool)
Obtains the Serialized fields and values in form of nested columns for BigQuery https://cloud.google.com/bigquery/docs/nested-repeated
Declaration
public static string[] ToNestedColumnWithDefault<T>(this T current, T defaultObject, bool compareAndSimplifyWithDefault = false)
Parameters
| Type | Name | Description |
|---|---|---|
| T | current | The current object to obtain the fields and values. |
| T | defaultObject | The default object |
| bool | compareAndSimplifyWithDefault | If a comparison against the default value must be done. |
Returns
| Type | Description |
|---|---|
| string[] | The nested columns in form of {key.nestedKey : value} |
Type Parameters
| Name | Description |
|---|---|
| T | The given type |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |