toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'title': title,
  'description': description,
  'image_url': imageUrl,
  'actions': actions.map((a) => a.toJson()).toList(),
};