catalogueElementMapper method
Creates a Map
from a CatalogueElement instance.
It's used in the Catalogue class, to create a Map
from the catalogue.
Implementation
catalogueElementMapper() {
return <String, dynamic> {
'elementName': elementName,
'elementValue': elementValue,
'elementQuantity': elementQuantity,
'chosenQuantity': chosenQuantity,
'elementId': elementId,
};
}