@@ -13,17 +13,37 @@ part of openapi.api;
1313class CallStatsParticipantCounts {
1414 /// Returns a new [CallStatsParticipantCounts] instance.
1515 CallStatsParticipantCounts ({
16+ this .averageJitterMs,
17+ this .averageLatencyMs,
1618 this .callEventCount,
1719 this .cqScore,
1820 required this .liveSessions,
21+ this .maxFreezesDurationMs,
1922 required this .participants,
2023 required this .peakConcurrentSessions,
2124 required this .peakConcurrentUsers,
2225 required this .publishers,
2326 required this .sessions,
27+ required this .sfusUsed,
2428 this .totalParticipantDuration,
2529 });
2630
31+ ///
32+ /// Please note: This property should have been non-nullable! Since the specification file
33+ /// does not include a default value (using the "default:" property), however, the generated
34+ /// source code must fall back to having a nullable type.
35+ /// Consider adding a "default:" property in the specification file to hide this note.
36+ ///
37+ int ? averageJitterMs;
38+
39+ ///
40+ /// Please note: This property should have been non-nullable! Since the specification file
41+ /// does not include a default value (using the "default:" property), however, the generated
42+ /// source code must fall back to having a nullable type.
43+ /// Consider adding a "default:" property in the specification file to hide this note.
44+ ///
45+ int ? averageLatencyMs;
46+
2747 ///
2848 /// Please note: This property should have been non-nullable! Since the specification file
2949 /// does not include a default value (using the "default:" property), however, the generated
@@ -42,6 +62,14 @@ class CallStatsParticipantCounts {
4262
4363 int liveSessions;
4464
65+ ///
66+ /// Please note: This property should have been non-nullable! Since the specification file
67+ /// does not include a default value (using the "default:" property), however, the generated
68+ /// source code must fall back to having a nullable type.
69+ /// Consider adding a "default:" property in the specification file to hide this note.
70+ ///
71+ int ? maxFreezesDurationMs;
72+
4573 int participants;
4674
4775 int peakConcurrentSessions;
@@ -52,6 +80,8 @@ class CallStatsParticipantCounts {
5280
5381 int sessions;
5482
83+ int sfusUsed;
84+
5585 ///
5686 /// Please note: This property should have been non-nullable! Since the specification file
5787 /// does not include a default value (using the "default:" property), however, the generated
@@ -64,37 +94,55 @@ class CallStatsParticipantCounts {
6494 bool operator == (Object other) =>
6595 identical (this , other) ||
6696 other is CallStatsParticipantCounts &&
97+ other.averageJitterMs == averageJitterMs &&
98+ other.averageLatencyMs == averageLatencyMs &&
6799 other.callEventCount == callEventCount &&
68100 other.cqScore == cqScore &&
69101 other.liveSessions == liveSessions &&
102+ other.maxFreezesDurationMs == maxFreezesDurationMs &&
70103 other.participants == participants &&
71104 other.peakConcurrentSessions == peakConcurrentSessions &&
72105 other.peakConcurrentUsers == peakConcurrentUsers &&
73106 other.publishers == publishers &&
74107 other.sessions == sessions &&
108+ other.sfusUsed == sfusUsed &&
75109 other.totalParticipantDuration == totalParticipantDuration;
76110
77111 @override
78112 int get hashCode =>
79113 // ignore: unnecessary_parenthesis
114+ (averageJitterMs == null ? 0 : averageJitterMs! .hashCode) +
115+ (averageLatencyMs == null ? 0 : averageLatencyMs! .hashCode) +
80116 (callEventCount == null ? 0 : callEventCount! .hashCode) +
81117 (cqScore == null ? 0 : cqScore! .hashCode) +
82118 (liveSessions.hashCode) +
119+ (maxFreezesDurationMs == null ? 0 : maxFreezesDurationMs! .hashCode) +
83120 (participants.hashCode) +
84121 (peakConcurrentSessions.hashCode) +
85122 (peakConcurrentUsers.hashCode) +
86123 (publishers.hashCode) +
87124 (sessions.hashCode) +
125+ (sfusUsed.hashCode) +
88126 (totalParticipantDuration == null
89127 ? 0
90128 : totalParticipantDuration! .hashCode);
91129
92130 @override
93131 String toString () =>
94- 'CallStatsParticipantCounts[callEventCount=$callEventCount , cqScore=$cqScore , liveSessions=$liveSessions , participants=$participants , peakConcurrentSessions=$peakConcurrentSessions , peakConcurrentUsers=$peakConcurrentUsers , publishers=$publishers , sessions=$sessions , totalParticipantDuration=$totalParticipantDuration ]' ;
132+ 'CallStatsParticipantCounts[averageJitterMs=$ averageJitterMs , averageLatencyMs=$ averageLatencyMs , callEventCount=$callEventCount , cqScore=$cqScore , liveSessions=$liveSessions , maxFreezesDurationMs=$ maxFreezesDurationMs , participants=$participants , peakConcurrentSessions=$peakConcurrentSessions , peakConcurrentUsers=$peakConcurrentUsers , publishers=$publishers , sessions=$sessions , sfusUsed=$ sfusUsed , totalParticipantDuration=$totalParticipantDuration ]' ;
95133
96134 Map <String , dynamic > toJson () {
97135 final json = < String , dynamic > {};
136+ if (this .averageJitterMs != null ) {
137+ json[r'average_jitter_ms' ] = this .averageJitterMs;
138+ } else {
139+ json[r'average_jitter_ms' ] = null ;
140+ }
141+ if (this .averageLatencyMs != null ) {
142+ json[r'average_latency_ms' ] = this .averageLatencyMs;
143+ } else {
144+ json[r'average_latency_ms' ] = null ;
145+ }
98146 if (this .callEventCount != null ) {
99147 json[r'call_event_count' ] = this .callEventCount;
100148 } else {
@@ -106,11 +154,17 @@ class CallStatsParticipantCounts {
106154 json[r'cq_score' ] = null ;
107155 }
108156 json[r'live_sessions' ] = this .liveSessions;
157+ if (this .maxFreezesDurationMs != null ) {
158+ json[r'max_freezes_duration_ms' ] = this .maxFreezesDurationMs;
159+ } else {
160+ json[r'max_freezes_duration_ms' ] = null ;
161+ }
109162 json[r'participants' ] = this .participants;
110163 json[r'peak_concurrent_sessions' ] = this .peakConcurrentSessions;
111164 json[r'peak_concurrent_users' ] = this .peakConcurrentUsers;
112165 json[r'publishers' ] = this .publishers;
113166 json[r'sessions' ] = this .sessions;
167+ json[r'sfus_used' ] = this .sfusUsed;
114168 if (this .totalParticipantDuration != null ) {
115169 json[r'total_participant_duration' ] = this .totalParticipantDuration;
116170 } else {
@@ -154,20 +208,29 @@ class CallStatsParticipantCounts {
154208 'Required key "CallStatsParticipantCounts[sessions]" is missing from JSON.' );
155209 assert (json[r'sessions' ] != null ,
156210 'Required key "CallStatsParticipantCounts[sessions]" has a null value in JSON.' );
211+ assert (json.containsKey (r'sfus_used' ),
212+ 'Required key "CallStatsParticipantCounts[sfus_used]" is missing from JSON.' );
213+ assert (json[r'sfus_used' ] != null ,
214+ 'Required key "CallStatsParticipantCounts[sfus_used]" has a null value in JSON.' );
157215 return true ;
158216 }());
159217
160218 return CallStatsParticipantCounts (
219+ averageJitterMs: mapValueOfType <int >(json, r'average_jitter_ms' ),
220+ averageLatencyMs: mapValueOfType <int >(json, r'average_latency_ms' ),
161221 callEventCount: mapValueOfType <int >(json, r'call_event_count' ),
162222 cqScore: mapValueOfType <int >(json, r'cq_score' ),
163223 liveSessions: mapValueOfType <int >(json, r'live_sessions' )! ,
224+ maxFreezesDurationMs:
225+ mapValueOfType <int >(json, r'max_freezes_duration_ms' ),
164226 participants: mapValueOfType <int >(json, r'participants' )! ,
165227 peakConcurrentSessions:
166228 mapValueOfType <int >(json, r'peak_concurrent_sessions' )! ,
167229 peakConcurrentUsers:
168230 mapValueOfType <int >(json, r'peak_concurrent_users' )! ,
169231 publishers: mapValueOfType <int >(json, r'publishers' )! ,
170232 sessions: mapValueOfType <int >(json, r'sessions' )! ,
233+ sfusUsed: mapValueOfType <int >(json, r'sfus_used' )! ,
171234 totalParticipantDuration:
172235 mapValueOfType <int >(json, r'total_participant_duration' ),
173236 );
@@ -232,5 +295,6 @@ class CallStatsParticipantCounts {
232295 'peak_concurrent_users' ,
233296 'publishers' ,
234297 'sessions' ,
298+ 'sfus_used' ,
235299 };
236300}
0 commit comments