CatalogueElement.fromMap constructor
Constructor used to create the element from a Map
.
It is used in the Catalogue class to transform the Catalogue in the DB in a matrix.
Implementation
CatalogueElement.fromMap(Map map) {
elementName = map['elementName'];
elementValue = map['elementValue'];
elementQuantity = map['elementQuantity'];
elementId = map['elementId'];
chosenQuantity = map['chosenQuantity'];
}