프로젝트 최초 커밋
This commit is contained in:
38
lib/models/warehouse_location_model.dart
Normal file
38
lib/models/warehouse_location_model.dart
Normal file
@@ -0,0 +1,38 @@
|
||||
import 'address_model.dart';
|
||||
|
||||
/// 입고지 정보를 나타내는 모델 클래스
|
||||
class WarehouseLocation {
|
||||
/// 입고지 고유 번호
|
||||
final int id;
|
||||
|
||||
/// 입고지명
|
||||
final String name;
|
||||
|
||||
/// 입고지 주소
|
||||
final Address address;
|
||||
|
||||
/// 비고
|
||||
final String? remark;
|
||||
|
||||
WarehouseLocation({
|
||||
required this.id,
|
||||
required this.name,
|
||||
required this.address,
|
||||
this.remark,
|
||||
});
|
||||
|
||||
/// 복사본 생성 (불변성 유지)
|
||||
WarehouseLocation copyWith({
|
||||
int? id,
|
||||
String? name,
|
||||
Address? address,
|
||||
String? remark,
|
||||
}) {
|
||||
return WarehouseLocation(
|
||||
id: id ?? this.id,
|
||||
name: name ?? this.name,
|
||||
address: address ?? this.address,
|
||||
remark: remark ?? this.remark,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user