toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() {
  return {
    if (emailAlertConfig != null)
      'emailAlertConfig': emailAlertConfig!.toJson(),
    if (enableLogging.isNotDefault) 'enableLogging': enableLogging,
    if (notificationChannels.isNotDefault)
      'notificationChannels': notificationChannels,
  };
}