toJson method
Implementation
Map<String, Object?> toJson() {
var text = this.text;
var title = this.title;
var type = this.type;
final json = <String, Object?>{};
if (text != null) {
json[r'text'] = text;
}
if (title != null) {
json[r'title'] = title;
}
if (type != null) {
json[r'type'] = type.value;
}
return json;
}