QuestionAnsweringHelpfulnessInput.fromJson constructor
QuestionAnsweringHelpfulnessInput.fromJson(
- Object? j
Implementation
factory QuestionAnsweringHelpfulnessInput.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return QuestionAnsweringHelpfulnessInput(
metricSpec: switch (json['metricSpec']) {
null => null,
Object $1 => QuestionAnsweringHelpfulnessSpec.fromJson($1),
},
instance: switch (json['instance']) {
null => null,
Object $1 => QuestionAnsweringHelpfulnessInstance.fromJson($1),
},
);
}