RunQueryResponse.fromJson constructor

RunQueryResponse.fromJson(
  1. Map json_
)

Implementation

RunQueryResponse.fromJson(core.Map json_)
    : this(
        batch: json_.containsKey('batch')
            ? QueryResultBatch.fromJson(
                json_['batch'] as core.Map<core.String, core.dynamic>)
            : null,
        explainMetrics: json_.containsKey('explainMetrics')
            ? ExplainMetrics.fromJson(json_['explainMetrics']
                as core.Map<core.String, core.dynamic>)
            : null,
        query: json_.containsKey('query')
            ? Query.fromJson(
                json_['query'] as core.Map<core.String, core.dynamic>)
            : null,
        transaction: json_.containsKey('transaction')
            ? json_['transaction'] as core.String
            : null,
      );