Class Struct (6.11.0)

Struct

Inheritance

Array < Field > > Struct

Package

@google-cloud/spanner

Methods

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

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

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}

Design a Mobile Site
View Site in Mobile | Classic
Share by: