FeatureStatsAnomaly.fromJson constructor
FeatureStatsAnomaly.fromJson(
- Object? j
Implementation
factory FeatureStatsAnomaly.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return FeatureStatsAnomaly(
score: switch (json['score']) {
null => 0,
Object $1 => decodeDouble($1),
},
statsUri: switch (json['statsUri']) {
null => '',
Object $1 => decodeString($1),
},
anomalyUri: switch (json['anomalyUri']) {
null => '',
Object $1 => decodeString($1),
},
distributionDeviation: switch (json['distributionDeviation']) {
null => 0,
Object $1 => decodeDouble($1),
},
anomalyDetectionThreshold: switch (json['anomalyDetectionThreshold']) {
null => 0,
Object $1 => decodeDouble($1),
},
startTime: switch (json['startTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
endTime: switch (json['endTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
);
}