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 json) { id = json['id']; name = json['name']; description = json['description']; address = json['address']; created_by = json['created_by']; updated_by = json['updated_by']; } Map 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 json) { return WarehouseEnterModel( id: json['id'], name: json['name'], description: json['description'], address: json['address'], ); } Map toJson() => { 'id': id, 'name': name, 'description': description, 'address': address, }; }