toJson method
Implementation
Map<String, dynamic> toJson() => {
"clickable": clickable,
"contentType": contentTypeEnumValues.reverse[contentType],
"defaultAttributes": defaultAttributes?.toJson(),
"defaultContent": defaultContent?.toJson(),
"id": id,
"overlay": overlay?.toJson(),
"presets": presets == null ? [] : List<dynamic>.from(presets!.map((x) => x.toJson())),
"tag": tag,
"trigger": trigger?.toJson(),
};