QueryResponse.fromJson constructor

QueryResponse.fromJson(
  1. Map json_
)

Implementation

QueryResponse.fromJson(core.Map json_)
    : this(
        columnHeaders: json_.containsKey('columnHeaders')
            ? (json_['columnHeaders'] as core.List)
                .map((value) => ResultTableColumnHeader.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        errors: json_.containsKey('errors')
            ? Errors.fromJson(
                json_['errors'] as core.Map<core.String, core.dynamic>)
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        rows: json_.containsKey('rows')
            ? (json_['rows'] as core.List)
                .map((value) => value as core.List)
                .toList()
            : null,
      );