toJson method
Implementation
Map<String, Object?> toJson() {
var isDismissible = this.isDismissible;
var isEnabled = this.isEnabled;
var message = this.message;
var visibility = this.visibility;
final json = <String, Object?>{};
json[r'isDismissible'] = isDismissible;
json[r'isEnabled'] = isEnabled;
if (message != null) {
json[r'message'] = message;
}
if (visibility != null) {
json[r'visibility'] = visibility;
}
return json;
}