toJson method
Implementation
Map<String, dynamic> toJson() {
final result$data = <String, dynamic>{};
if (_$data.containsKey('image')) {
final l$image = image;
result$data['image'] = l$image?.toJson();
}
if (_$data.containsKey('icon')) {
final l$icon = icon;
result$data['icon'] = l$icon;
}
if (_$data.containsKey('title')) {
final l$title = title;
result$data['title'] = l$title;
}
if (_$data.containsKey('description')) {
final l$description = description;
result$data['description'] = l$description;
}
if (_$data.containsKey('calltoaction')) {
final l$calltoaction = calltoaction;
result$data['calltoaction'] = l$calltoaction?.toJson();
}
return result$data;
}