toJson method
Implementation
Map<String, dynamic> toJson() {
return {
"catalogObjectType": catalogObjectType,
"catalogObjectId": catalogObjectId,
"quantity": quantity,
"price": price,
"currency": currency,
"attributes": attributes,
"objType": _objType
};
}