toMap method

Map<String, dynamic> toMap()

Converts this object into a Map that can be used to encode it to JSON.

The map contains the following keys:

The values of the map are the corresponding values of the object.

Implementation

Map<String, dynamic> toMap() {
  return {
    'productName': name,
    'imagePaths': imagePaths,
    'productionFamilyName': productionFamilyName,
    'productWhatsappNumber': productWhatsappNumber,
    'productionFamilyWebsiteUrl': productionFamilyWebsiteUrl,
    'productPrice': productPrice,
    'productRating': productRating,
    'productReviweCount': productReviweCount,
  };
}