QuestionAnsweringQualityInput.fromJson constructor

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

Implementation

factory QuestionAnsweringQualityInput.fromJson(Map<String, dynamic> json) {
  return QuestionAnsweringQualityInput(
    metricSpec: decode(
      json['metricSpec'],
      QuestionAnsweringQualitySpec.fromJson,
    ),
    instance: decode(
      json['instance'],
      QuestionAnsweringQualityInstance.fromJson,
    ),
  );
}