toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
      'kind': kind,
      if (columns case final c?) 'columns': c,
      if (rows case final r?) 'rows': r,
      if (affected case final a?) 'affected': a,
      if (truncated) 'truncated': true,
      if (error case final e?) 'error': e,
    };