Initial draft
This commit is contained in:
14
lib/model/customer.dart
Normal file
14
lib/model/customer.dart
Normal file
@ -0,0 +1,14 @@
|
||||
import 'package:hl_lieferservice/dto/customer.dart';
|
||||
|
||||
import 'address.dart';
|
||||
|
||||
class Customer {
|
||||
const Customer({required this.name, required this.address});
|
||||
|
||||
final String name;
|
||||
final Address address;
|
||||
|
||||
factory Customer.fromDTO(CustomerDTO dto) {
|
||||
return Customer(name: dto.name, address: Address.fromDTO(dto.address));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user