Siopas Inventory PETI for ISTW Mobile
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import 'package:siopas/models/m_asset_status_model.dart';
|
|
|
|
|
|
|
|
class WarehouseModel {
|
|
|
|
int? id;
|
|
|
|
String? name;
|
|
|
|
String? description;
|
|
|
|
String? address;
|
|
|
|
String? created_by;
|
|
|
|
String? updated_by;
|
|
|
|
|
|
|
|
WarehouseModel({
|
|
|
|
this.id,
|
|
|
|
this.name,
|
|
|
|
this.description,
|
|
|
|
this.address,
|
|
|
|
this.created_by,
|
|
|
|
this.updated_by,
|
|
|
|
});
|
|
|
|
|
|
|
|
WarehouseModel.fromJson(Map<String, dynamic> json) {
|
|
|
|
id = json['id'];
|
|
|
|
name = json['name'];
|
|
|
|
description = json['description'];
|
|
|
|
address = json['address'];
|
|
|
|
created_by = json['created_by'];
|
|
|
|
updated_by = json['updated_by'];
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
'id': id,
|
|
|
|
'name': name,
|
|
|
|
'description': description,
|
|
|
|
'address': address,
|
|
|
|
'created_by': created_by,
|
|
|
|
'updated_by': updated_by,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
class WarehouseEnterModel {
|
|
|
|
int? id;
|
|
|
|
String? name;
|
|
|
|
String? description;
|
|
|
|
String? address;
|
|
|
|
|
|
|
|
WarehouseEnterModel({
|
|
|
|
this.id,
|
|
|
|
this.name,
|
|
|
|
this.description,
|
|
|
|
this.address,
|
|
|
|
});
|
|
|
|
|
|
|
|
factory WarehouseEnterModel.fromJson(Map<String, dynamic> json) {
|
|
|
|
return WarehouseEnterModel(
|
|
|
|
id: json['id'],
|
|
|
|
name: json['name'],
|
|
|
|
description: json['description'],
|
|
|
|
address: json['address'],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
'id': id,
|
|
|
|
'name': name,
|
|
|
|
'description': description,
|
|
|
|
'address': address,
|
|
|
|
};
|
|
|
|
}
|