toSerializable method

List<Map<String, dynamic>> toSerializable()

Implementation

List<Map<String, dynamic>> toSerializable() {
  if (!decoder.supportsJsonSerialization) {
    throw UnsupportedError(
      'Table "$tableName" decoder does not support JSON serialization. '
      'Implement toJson() and fromJson() in your RowDecoder.',
    );
  }
  return iter().map((row) => decoder.toJson(row)!).toList();
}