QueryRequest.fromJson constructor
QueryRequest.fromJson(
- Map json_
Implementation
QueryRequest.fromJson(core.Map json_)
: this(
connectionProperties: json_.containsKey('connectionProperties')
? (json_['connectionProperties'] as core.List)
.map((value) => ConnectionProperty.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
continuous: json_.containsKey('continuous')
? json_['continuous'] as core.bool
: null,
createSession: json_.containsKey('createSession')
? json_['createSession'] as core.bool
: null,
defaultDataset: json_.containsKey('defaultDataset')
? DatasetReference.fromJson(json_['defaultDataset']
as core.Map<core.String, core.dynamic>)
: null,
dryRun:
json_.containsKey('dryRun') ? json_['dryRun'] as core.bool : null,
formatOptions: json_.containsKey('formatOptions')
? DataFormatOptions.fromJson(
json_['formatOptions'] as core.Map<core.String, core.dynamic>)
: null,
jobCreationMode: json_.containsKey('jobCreationMode')
? json_['jobCreationMode'] as core.String
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
location: json_.containsKey('location')
? json_['location'] as core.String
: null,
maxResults: json_.containsKey('maxResults')
? json_['maxResults'] as core.int
: null,
maximumBytesBilled: json_.containsKey('maximumBytesBilled')
? json_['maximumBytesBilled'] as core.String
: null,
parameterMode: json_.containsKey('parameterMode')
? json_['parameterMode'] as core.String
: null,
preserveNulls: json_.containsKey('preserveNulls')
? json_['preserveNulls'] as core.bool
: null,
query:
json_.containsKey('query') ? json_['query'] as core.String : null,
queryParameters: json_.containsKey('queryParameters')
? (json_['queryParameters'] as core.List)
.map((value) => QueryParameter.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
requestId: json_.containsKey('requestId')
? json_['requestId'] as core.String
: null,
timeoutMs: json_.containsKey('timeoutMs')
? json_['timeoutMs'] as core.int
: null,
useLegacySql: json_.containsKey('useLegacySql')
? json_['useLegacySql'] as core.bool
: null,
useQueryCache: json_.containsKey('useQueryCache')
? json_['useQueryCache'] as core.bool
: null,
);