Files
fcs/lib/domain/entities/carton_size.dart

31 lines
566 B
Dart
Raw Normal View History

2020-12-01 19:02:21 +06:30
class CartonSize {
String id;
String name;
double length;
double width;
double height;
CartonSize({this.id, this.name, this.length, this.width, this.height});
2020-12-03 17:21:59 +06:30
Map<String, dynamic> toMap() {
return {
'id': id,
'name': name,
'length': length,
'width': width,
'height': height,
};
}
factory CartonSize.fromMap(Map<String, dynamic> map, String id) {
return CartonSize(
id: id,
name: map['name'],
length: map['length'],
width: map['width'],
height: map['height'],
);
}
2020-12-01 19:02:21 +06:30
}