toJson method
Implementation
@override
Map<String, Object?> toJson() => {
"id": encodeValue(id),
if (about != null) "about": encodeValue(about),
"active": encodeValue(active),
if (archivedAt != null) "archived_at": encodeValue(archivedAt),
if (attributes != null) "attributes": encodeValue(attributes),
if (category != null) "category": encodeValue(category),
"created_at": encodeValue(createdAt),
if (customData != null) "custom_data": encodeValue(customData),
if (description != null) "description": encodeValue(description),
if (dimensions != null) "dimensions": encodeValue(dimensions),
if (media != null) "media": encodeValue(media),
"name": encodeValue(name),
if (publishedAt != null) "published_at": encodeValue(publishedAt),
if (reference != null) "reference": encodeValue(reference),
if (shipment != null) "shipment": encodeValue(shipment),
if (taxCode != null) "tax_code": encodeValue(taxCode),
"type": encodeValue(type),
if (unitDim != null) "unit_dim": encodeValue(unitDim),
if (updatedAt != null) "updated_at": encodeValue(updatedAt),
if (prices != null) "prices": encodeValue(prices),
if (variantSetId != null) "variant_set_id": encodeValue(variantSetId),
};