RealtimeTranslationNoiseReduction.fromJson constructor

RealtimeTranslationNoiseReduction.fromJson(
  1. Map<String, dynamic> json
)

Creates from JSON.

Implementation

factory RealtimeTranslationNoiseReduction.fromJson(
  Map<String, dynamic> json,
) {
  if (json['type'] == null) {
    throw const FormatException(
      'RealtimeTranslationNoiseReduction.fromJson missing required "type" field',
    );
  }
  return RealtimeTranslationNoiseReduction(
    type: NoiseReductionType.fromJson(json['type'] as String),
  );
}