From 3d172304fcd454403d6a8d72c73070362514ea00 Mon Sep 17 00:00:00 2001 From: HUI Date: Mon, 8 Mar 2021 20:47:20 +0800 Subject: [PATCH] fix: support null safety --- lib/src/classes.dart | 2 +- lib/src/enum_converter.g.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/classes.dart b/lib/src/classes.dart index e0e8489b8..83f0bbdf8 100644 --- a/lib/src/classes.dart +++ b/lib/src/classes.dart @@ -1031,7 +1031,7 @@ class RemoteAudioStats { ExperiencePoorReason? qualityChangedReason; /// The quality of the remote audio stream as determined by the Agora real-time audio MOS (Mean Opinion Score) measurement method in the reported interval. The return value ranges from 0 to 500. Dividing the return value by 100 gets the MOS score, which ranges from 0 to 5. The higher the score, the better the audio quality. - int mosValue; + int? mosValue; /// Constructs a [RemoteAudioStats] RemoteAudioStats(); diff --git a/lib/src/enum_converter.g.dart b/lib/src/enum_converter.g.dart index 79d7c9996..4b29c6810 100644 --- a/lib/src/enum_converter.g.dart +++ b/lib/src/enum_converter.g.dart @@ -1629,7 +1629,7 @@ const _$ExperiencePoorReasonEnumMap = { VoiceConversionPresetConverter _$VoiceConversionPresetConverterFromJson( Map json) { return VoiceConversionPresetConverter( - _$enumDecodeNullable(_$VoiceConversionPresetEnumMap, json['e']), + _$enumDecode(_$VoiceConversionPresetEnumMap, json['e']), ); }