toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"title": title,
"subtitle": subtitle,
"link": link,
"location": location,
"type": type,
"order": order,
"parentId": parentId,
"relatedProducts": relatedProducts == null ? null : List<dynamic>.from(relatedProducts!.map((String x) => x)),
"addRelatedProducts": addRelatedProducts == null ? null : List<dynamic>.from(addRelatedProducts!.map((String x) => x)),
"removeRelatedProducts": removeRelatedProducts == null ? null : List<dynamic>.from(removeRelatedProducts!.map((String x) => x)),
"id": id,
"addTags": addTags == null ? null : List<dynamic>.from(addTags!.map((int x) => x)),
"removeTags": removeTags == null ? null : List<dynamic>.from(removeTags!.map((int x) => x)),
"tags": tags == null ? null : List<dynamic>.from(tags!.map((int x) => x)),
};