Product.fromJson constructor
Product.fromJson(
- Map<String, dynamic> json
)
Implementation
Product.fromJson(Map<String, dynamic> json) {
if (json["productId"] is int) {
productId = json["productId"];
}
if (json["serialNumber"] is String) {
serialNumber = json["serialNumber"];
}
if (json["productRefLabel"] is String) {
productRefLabel = json["productRefLabel"];
}
if (json["productCustomerLabel"] is String) {
productCustomerLabel = json["productCustomerLabel"];
}
if (json["pictureUrl"] is String) {
pictureUrl = json["pictureUrl"];
}
}