RowEntity.fromJson constructor

RowEntity.fromJson(
  1. Map<String, dynamic> jsonRes,
  2. List<ColumnEntity> columns
)

Implementation

factory RowEntity.fromJson(
    Map<String, dynamic> jsonRes, List<ColumnEntity> columns) {
  return RowEntity(
    cells: columns
        .map((e) => CellEntity(value: jsonRes[e.name], columnInfo: e))
        .toList(growable: false),
    columns: columns,
  );
}