QuestionAnsweringHelpfulnessSpec.fromJson constructor
QuestionAnsweringHelpfulnessSpec.fromJson(
- Object? j
Implementation
factory QuestionAnsweringHelpfulnessSpec.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return QuestionAnsweringHelpfulnessSpec(
useReference: switch (json['useReference']) {
null => false,
Object $1 => decodeBool($1),
},
version: switch (json['version']) {
null => 0,
Object $1 => decodeInt($1),
},
);
}