ModelMonitoringNotificationSpec.fromJson constructor

ModelMonitoringNotificationSpec.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ModelMonitoringNotificationSpec.fromJson(Map<String, dynamic> json) {
  return ModelMonitoringNotificationSpec(
    emailConfig: decode(
      json['emailConfig'],
      ModelMonitoringNotificationSpec_EmailConfig.fromJson,
    ),
    enableCloudLogging: json['enableCloudLogging'] ?? false,
    notificationChannelConfigs:
        decodeListMessage(
          json['notificationChannelConfigs'],
          ModelMonitoringNotificationSpec_NotificationChannelConfig.fromJson,
        ) ??
        [],
  );
}