Files
superport/lib/models/warehouse_location_model.dart
2025-07-02 17:45:44 +09:00

39 lines
733 B
Dart

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,
);
}
}