toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"title": title,
"code": code,
"subtitle": subtitle,
"description": description,
"actionType": actionType,
"actionTitle": actionTitle,
"actionUri": actionUri,
"slug": slug,
"type": type,
"content": content,
"latitude": latitude,
"longitude": longitude,
"stock": stock,
"price": price,
"details": details,
"tags": List<dynamic>.from(tags.map((dynamic x) => x)),
"categories": categories == null ? null : List<dynamic>.from(categories!.map((dynamic x) => x)),
"relatedProducts": relatedProducts == null ? null : List<dynamic>.from(relatedProducts!.map((dynamic x) => x)),
"parentId": parentId,
"userId": userId,
"point": point,
};