FeatureStatsAndAnomaly.fromJson constructor
FeatureStatsAndAnomaly.fromJson(
- Object? j
Implementation
factory FeatureStatsAndAnomaly.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return FeatureStatsAndAnomaly(
featureId: switch (json['featureId']) {
null => '',
Object $1 => decodeString($1),
},
featureStats: switch (json['featureStats']) {
null => null,
Object $1 => protobuf.Value.fromJson($1),
},
distributionDeviation: switch (json['distributionDeviation']) {
null => 0,
Object $1 => decodeDouble($1),
},
driftDetectionThreshold: switch (json['driftDetectionThreshold']) {
null => 0,
Object $1 => decodeDouble($1),
},
driftDetected: switch (json['driftDetected']) {
null => false,
Object $1 => decodeBool($1),
},
statsTime: switch (json['statsTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
featureMonitorJobId: switch (json['featureMonitorJobId']) {
null => 0,
Object $1 => decodeInt64($1),
},
featureMonitorId: switch (json['featureMonitorId']) {
null => '',
Object $1 => decodeString($1),
},
);
}