FeatureStatsAndAnomaly.fromJson constructor

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

Implementation

factory FeatureStatsAndAnomaly.fromJson(Map<String, dynamic> json) {
  return FeatureStatsAndAnomaly(
    featureId: json['featureId'] ?? '',
    featureStats: decodeCustom(json['featureStats'], protobuf.Value.fromJson),
    distributionDeviation: decodeDouble(json['distributionDeviation']) ?? 0,
    driftDetectionThreshold:
        decodeDouble(json['driftDetectionThreshold']) ?? 0,
    driftDetected: json['driftDetected'] ?? false,
    statsTime: decodeCustom(json['statsTime'], protobuf.Timestamp.fromJson),
    featureMonitorJobId: decodeInt64(json['featureMonitorJobId']) ?? 0,
    featureMonitorId: json['featureMonitorId'] ?? '',
  );
}