toJson method
Converts this tag to a JSON map.
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'name': name,
if (nsfwLevel != null) 'nsfwLevel': nsfwLevel!.toJson(),
if (modelCount != null) 'modelCount': modelCount,
if (imageCount != null) 'imageCount': imageCount,
if (postCount != null) 'postCount': postCount,
if (isCategory != null) 'isCategory': isCategory,
if (link != null) 'link': link,
};
}