|
- class Supply {
- int? id;
- num? quantity;
- String? unit;
- int? tbWarehouseId;
- String? tbWarehouseName;
- String? tbSuppliesName;
- int? tbSuppliesId;
- String? tbEntityName;
- bool? isSelected;
-
- Supply({
- this.id,
- this.quantity,
- this.unit,
- this.tbWarehouseId,
- this.tbWarehouseName,
- this.tbSuppliesName,
- this.tbSuppliesId,
- this.tbEntityName,
- this.isSelected,
- });
-
- Supply.fromJson(Map<String, dynamic> json) {
- id = json['id'];
- quantity = json['quantity'];
- unit = json['unit'];
- tbWarehouseId = json['tbWarehouseId'];
- tbWarehouseName = json['tbWarehouseName'];
- tbEntityName = json['tbEntityName'];
- tbSuppliesName = json['tbSuppliesName'];
- tbSuppliesId = json['tbSuppliesId'];
- isSelected = false;
- }
-
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['id'] = this.id;
- data['quantity'] = this.quantity;
- data['unit'] = this.unit;
- data['tbWarehouseId'] = this.tbWarehouseId;
- data['tbWarehouseName'] = this.tbWarehouseName;
- data['tbEntityName'] = this.tbEntityName;
- data['tbSuppliesName'] = this.tbSuppliesName;
- data['tbSuppliesId'] = this.tbSuppliesId;
- return data;
- }
- }
|