toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var event = this.event;
  var notifications = this.notifications;

  final json = <String, Object?>{};
  if (event != null) {
    json[r'event'] = event.toJson();
  }
  json[r'notifications'] = notifications.map((i) => i.toJson()).toList();
  return json;
}