ModelMonitoringAlert.fromJson constructor

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

Implementation

factory ModelMonitoringAlert.fromJson(Map<String, dynamic> json) {
  return ModelMonitoringAlert(
    statsName: json['statsName'] ?? '',
    objectiveType: json['objectiveType'] ?? '',
    alertTime: decodeCustom(json['alertTime'], protobuf.Timestamp.fromJson),
    anomaly: decode(json['anomaly'], ModelMonitoringAnomaly.fromJson),
  );
}