ClosingStock<C extends ClosingStockCalibre>.fromMap constructor

ClosingStock<C extends ClosingStockCalibre>.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory ClosingStock.fromMap(Map<String, dynamic> map) {
  return ClosingStock(
    ClosingRange.fromMap(map['closingRange']),
    articleCalibres: map['articleCalibres'] == null
        ? []
        : List<C>.from(map['articleCalibres']
            .map((x) => ClosingStockCalibre.fromMap(x))),
  );
}