BatchEvaluationResponse.fromJson constructor

BatchEvaluationResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory BatchEvaluationResponse.fromJson(Map<String, dynamic> json) {
  return BatchEvaluationResponse(
    responses: (json['responses'] as List?)
            ?.map(
                (e) => EvaluationResponse.fromJson(e as Map<String, dynamic>))
            .toList() ??
        [],
    requestDurationMillis: json['request_duration_millis'] as double? ?? 0.0,
  );
}