toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'barcode': barcode,
    'barcodeDetails': barcodeDetails?.toMap(),
    'titles': titles.toMap(),
    'categories': categories.map((e) => e.toMap()).toList(),
    'manufacturer': manufacturer?.toMap(),
    'relatedBrands': relatedBrands.map((e) => e.toMap()).toList(),
    'images': images.map((e) => e.toMap()).toList(),
    'metadata': metadata,
  };
}