|
- class Supply {
- int id;
- num quantity;
- String unit;
- int tbWarehouseId;
- String tbWarehouseName;
- String tbSuppliesName;
- int tbSuppliesId;
- bool isSelected;
-
- Supply(
- {this.id,
- this.quantity,
- this.unit,
- this.tbWarehouseId,
- this.tbWarehouseName,
- this.tbSuppliesName,
- this.tbSuppliesId,
- this.isSelected});
-
- Supply.fromJson(Map<String, dynamic> json) {
- id = json['id'];
- quantity = json['quantity'];
- unit = json['unit'];
- tbWarehouseId = json['tbWarehouseId'];
- tbWarehouseName = json['tbWarehouseName'];
- 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['tbSuppliesName'] = this.tbSuppliesName;
- data['tbSuppliesId'] = this.tbSuppliesId;
- return data;
- }
- }
|