toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (averages != null) 'averages': averages!,
      if (headers != null) 'headers': headers!,
      if (kind != null) 'kind': kind!,
      if (rows != null) 'rows': rows!,
      if (totalMatchedRows != null) 'totalMatchedRows': totalMatchedRows!,
      if (totals != null) 'totals': totals!,
      if (warnings != null) 'warnings': warnings!,
    };