DistillationSpec.fromJson constructor
DistillationSpec.fromJson(
- Object? j
Implementation
factory DistillationSpec.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return DistillationSpec(
baseTeacherModel: switch (json['baseTeacherModel']) {
null => null,
Object $1 => decodeString($1),
},
tunedTeacherModelSource: switch (json['tunedTeacherModelSource']) {
null => null,
Object $1 => decodeString($1),
},
trainingDatasetUri: switch (json['trainingDatasetUri']) {
null => '',
Object $1 => decodeString($1),
},
validationDatasetUri: switch (json['validationDatasetUri']) {
null => null,
Object $1 => decodeString($1),
},
hyperParameters: switch (json['hyperParameters']) {
null => null,
Object $1 => DistillationHyperParameters.fromJson($1),
},
studentModel: switch (json['studentModel']) {
null => '',
Object $1 => decodeString($1),
},
pipelineRootDirectory: switch (json['pipelineRootDirectory']) {
null => '',
Object $1 => decodeString($1),
},
);
}