ModelMonitoringTabularStats.fromJson constructor
ModelMonitoringTabularStats.fromJson(
- Object? j
Implementation
factory ModelMonitoringTabularStats.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return ModelMonitoringTabularStats(
statsName: switch (json['statsName']) {
null => '',
Object $1 => decodeString($1),
},
objectiveType: switch (json['objectiveType']) {
null => '',
Object $1 => decodeString($1),
},
dataPoints: switch (json['dataPoints']) {
null => [],
List<Object?> $1 => [
for (final i in $1) ModelMonitoringStatsDataPoint.fromJson(i),
],
_ => throw const FormatException('"dataPoints" is not a list'),
},
);
}