ToolCallValidMetricValue.fromJson constructor

ToolCallValidMetricValue.fromJson(
  1. Object? j
)

Implementation

factory ToolCallValidMetricValue.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ToolCallValidMetricValue(
    score: switch (json['score']) {
      null => null,
      Object $1 => decodeDouble($1),
    },
  );
}