Struct
Inheritance
Array<Field> > StructPackage
@google-cloud/spannerMethods
fromArray(fields)
static fromArray(fields: Field[]): Struct;
Converts an array of fields to a struct.
Parameter | |
---|---|
Name | Description |
fields |
Field[]
List of struct fields. {Struct} |
Returns | |
---|---|
Type | Description |
Struct |
fromJSON(json)
static fromJSON(json: Json): Struct;
Converts a JSON object to a struct.
Parameter | |
---|---|
Name | Description |
json |
Json
Struct JSON. {Struct} |
Returns | |
---|---|
Type | Description |
Struct |
toJSON(options)
toJSON(options?: JSONOptions): Json;
Converts struct into a pojo (plain old JavaScript object).
Parameter | |
---|---|
Name | Description |
options |
JSONOptions
JSON options. |
Returns | |
---|---|
Type | Description |
Json |
{object} |