serialize method
Implementation
String serialize() {
return jsonEncode({
'tags': tags.map((item) => item.serialize()).toList(),
'tagsToDelete': tagsToDelete.map((item) => item.serialize()).toList(),
'selectors': selectors,
'customId': customId,
});
}