toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'push_id': pushId,
'title': title,
if (body != null) 'body': body,
if (imageUrl != null) 'image_url': imageUrl,
if (actions != null) 'actions': actions!.map((e) => e.toMap()).toList(),
};
}