toJson method
Implementation
Map<String, Object?> toJson() {
var description = this.description;
var name = this.name;
var notificationSchemeEvents = this.notificationSchemeEvents;
final json = <String, Object?>{};
if (description != null) {
json[r'description'] = description;
}
json[r'name'] = name;
json[r'notificationSchemeEvents'] =
notificationSchemeEvents.map((i) => i.toJson()).toList();
return json;
}