SemanticVad.fromJson constructor
Creates from JSON.
Implementation
factory SemanticVad.fromJson(Map<String, dynamic> json) {
if (json['type'] != 'semantic_vad') {
throw FormatException(
'SemanticVad.fromJson expected type "semantic_vad", got ${json['type']}',
);
}
return SemanticVad(
createResponse: json['create_response'] as bool?,
eagerness: json['eagerness'] != null
? SemanticVadEagerness.fromJson(json['eagerness'] as String)
: null,
interruptResponse: json['interrupt_response'] as bool?,
);
}