toJson method

Map<String, dynamic> toJson()

Converts this table content to JSON.

Implementation

Map<String, dynamic> toJson() {
  return {
    'type': type,
    'rows': rows.map((row) => row.toJson()).toList(),
  };
}