StockListDTO.fromJson constructor

StockListDTO.fromJson(
  1. Map<String, dynamic> json
)

Implementation

StockListDTO.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
  quantity = json['quantity'];
  startDate = json['startDate'];
  endDate = json['endDate'];
  product =
      json['product'] != null ? ProductDTO.fromJson(json['product']) : null;
}