toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"id": id,
"detail1": detail1,
"detail2": detail2,
"addTags": addTags == null ? <dynamic>[] : List<dynamic>.from(addTags!.map((int x) => x)),
"removeTags": removeTags == null ? <dynamic>[] : List<dynamic>.from(removeTags!.map((int x) => x)),
"tags": tags == null ? <dynamic>[] : List<dynamic>.from(tags!.map((int x) => x)),
"adminUserIds": adminUserIds == null ? <dynamic>[] : List<dynamic>.from(adminUserIds!.map((String x) => x)),
"addAdminUserIds": addAdminUserIds == null ? <dynamic>[] : List<dynamic>.from(addAdminUserIds!.map((String x) => x)),
"removeAdminUserIds": removeAdminUserIds == null ? <dynamic>[] : List<dynamic>.from(removeAdminUserIds!.map((String x) => x)),
"title": title,
"subtitle": subtitle,
"slug": slug,
"content": content,
"metaTitle": metaTitle,
"metaDescription": metaDescription,
"source": source,
"addCategories": addCategories == null ? <dynamic>[] : List<dynamic>.from(addCategories!.map((String x) => x)),
"removeCategories": removeCategories == null ? <dynamic>[] : List<dynamic>.from(removeCategories!.map((String x) => x)),
"categories": categories == null ? <dynamic>[] : List<dynamic>.from(categories!.map((String x) => x)),
"media": media == null ? <dynamic>[] : List<dynamic>.from(media!.map((String x) => x)),
"code": code,
"description": description,
"type": type,
"actionType": actionType,
"actionTitle": actionTitle,
"actionUri": actionUri,
"latitude": latitude,
"longitude": longitude,
"parentId": parentId,
"creatorId": creatorId,
"relatedBlogs": relatedBlogs == null ? <dynamic>[] : List<dynamic>.from(relatedBlogs!.map((String x) => x)),
"addRelatedBlogs": addRelatedBlogs == null ? <dynamic>[] : List<dynamic>.from(addRelatedBlogs!.map((String x) => x)),
"removeRelatedBlogs": removeRelatedBlogs == null ? <dynamic>[] : List<dynamic>.from(removeRelatedBlogs!.map((String x) => x)),
};