18 lines
385 B
Dart
18 lines
385 B
Dart
class Product {
|
|
int productId;
|
|
String name;
|
|
String description;
|
|
String type;
|
|
DateTime validFrom;
|
|
DateTime validTo;
|
|
|
|
Product.fromJson(Map json) {
|
|
this.productId = json['productId'];
|
|
this.name = json['name'];
|
|
this.description = json['description'];
|
|
this.type = json['type'];
|
|
this.validFrom = json['validFrom'];
|
|
this.validTo = json['validTo'];
|
|
}
|
|
}
|