toJson method Null safety

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
      'columns': _columns,
      'values': _values.map((v) => v.toJson()).toList(),
      'rowSwaps': _rowSwaps
    };