toJson method
Implementation
@override
Object toJson() => {
'emailAlertConfig': ?emailAlertConfig?.toJson(),
if (enableLogging.isNotDefault) 'enableLogging': enableLogging,
if (notificationChannels.isNotDefault)
'notificationChannels': notificationChannels,
};