ModelMonitoringStatsDataPoint.fromJson constructor
ModelMonitoringStatsDataPoint.fromJson(
- Object? j
Implementation
factory ModelMonitoringStatsDataPoint.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return ModelMonitoringStatsDataPoint(
currentStats: switch (json['currentStats']) {
null => null,
Object $1 => ModelMonitoringStatsDataPoint_TypedValue.fromJson($1),
},
baselineStats: switch (json['baselineStats']) {
null => null,
Object $1 => ModelMonitoringStatsDataPoint_TypedValue.fromJson($1),
},
thresholdValue: switch (json['thresholdValue']) {
null => 0,
Object $1 => decodeDouble($1),
},
hasAnomaly: switch (json['hasAnomaly']) {
null => false,
Object $1 => decodeBool($1),
},
modelMonitoringJob: switch (json['modelMonitoringJob']) {
null => '',
Object $1 => decodeString($1),
},
schedule: switch (json['schedule']) {
null => '',
Object $1 => decodeString($1),
},
createTime: switch (json['createTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
algorithm: switch (json['algorithm']) {
null => '',
Object $1 => decodeString($1),
},
);
}