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