ExecuteSqlRequest.fromJson constructor

ExecuteSqlRequest.fromJson(
  1. Map json_
)

Implementation

ExecuteSqlRequest.fromJson(core.Map json_)
    : this(
        dataBoostEnabled: json_.containsKey('dataBoostEnabled')
            ? json_['dataBoostEnabled'] as core.bool
            : null,
        directedReadOptions: json_.containsKey('directedReadOptions')
            ? DirectedReadOptions.fromJson(json_['directedReadOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        paramTypes: json_.containsKey('paramTypes')
            ? (json_['paramTypes'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  Type.fromJson(value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        params: json_.containsKey('params')
            ? json_['params'] as core.Map<core.String, core.dynamic>
            : null,
        partitionToken: json_.containsKey('partitionToken')
            ? json_['partitionToken'] as core.String
            : null,
        queryMode: json_.containsKey('queryMode')
            ? json_['queryMode'] as core.String
            : null,
        queryOptions: json_.containsKey('queryOptions')
            ? QueryOptions.fromJson(
                json_['queryOptions'] as core.Map<core.String, core.dynamic>)
            : null,
        requestOptions: json_.containsKey('requestOptions')
            ? RequestOptions.fromJson(json_['requestOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        resumeToken: json_.containsKey('resumeToken')
            ? json_['resumeToken'] as core.String
            : null,
        seqno:
            json_.containsKey('seqno') ? json_['seqno'] as core.String : null,
        sql: json_.containsKey('sql') ? json_['sql'] as core.String : null,
        transaction: json_.containsKey('transaction')
            ? TransactionSelector.fromJson(
                json_['transaction'] as core.Map<core.String, core.dynamic>)
            : null,
      );