RunQueryResponseElement.fromJson constructor

RunQueryResponseElement.fromJson(
  1. Map json_
)

Implementation

RunQueryResponseElement.fromJson(core.Map json_)
    : this(
        document: json_.containsKey('document')
            ? Document.fromJson(
                json_['document'] as core.Map<core.String, core.dynamic>)
            : null,
        done: json_.containsKey('done') ? json_['done'] as core.bool : null,
        explainMetrics: json_.containsKey('explainMetrics')
            ? ExplainMetrics.fromJson(json_['explainMetrics']
                as core.Map<core.String, core.dynamic>)
            : null,
        readTime: json_.containsKey('readTime')
            ? json_['readTime'] as core.String
            : null,
        skippedResults: json_.containsKey('skippedResults')
            ? json_['skippedResults'] as core.int
            : null,
        transaction: json_.containsKey('transaction')
            ? json_['transaction'] as core.String
            : null,
      );