QuestionAnsweringHelpfulnessInput.fromJson constructor

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

Implementation

factory QuestionAnsweringHelpfulnessInput.fromJson(
  Map<String, dynamic> json,
) {
  return QuestionAnsweringHelpfulnessInput(
    metricSpec: decode(
      json['metricSpec'],
      QuestionAnsweringHelpfulnessSpec.fromJson,
    ),
    instance: decode(
      json['instance'],
      QuestionAnsweringHelpfulnessInstance.fromJson,
    ),
  );
}