ReadRequest.fromJson constructor

ReadRequest.fromJson(
  1. Map json_
)

Implementation

ReadRequest.fromJson(core.Map json_)
    : this(
        columns: json_.containsKey('columns')
            ? (json_['columns'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        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,
        index:
            json_.containsKey('index') ? json_['index'] as core.String : null,
        keySet: json_.containsKey('keySet')
            ? KeySet.fromJson(
                json_['keySet'] as core.Map<core.String, core.dynamic>)
            : null,
        limit:
            json_.containsKey('limit') ? json_['limit'] as core.String : null,
        partitionToken: json_.containsKey('partitionToken')
            ? json_['partitionToken'] as core.String
            : 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,
        table:
            json_.containsKey('table') ? json_['table'] as core.String : null,
        transaction: json_.containsKey('transaction')
            ? TransactionSelector.fromJson(
                json_['transaction'] as core.Map<core.String, core.dynamic>)
            : null,
      );