// GENERATED CODE - DO NOT MODIFY BY HAND // coverage:ignore-file // ignore_for_file: type=lint // ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark part of 'webrtc_signaling.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** // dart format off T _$identity(T value) => value; /// @nodoc mixin _$SignalingMessage implements DiagnosticableTreeMixin { String get type;// CHANGED: Added 'to' field for directed messaging String? get to; String get accountId; SnAccount get account; Map get data; /// Create a copy of SignalingMessage /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SignalingMessageCopyWith get copyWith => _$SignalingMessageCopyWithImpl(this as SignalingMessage, _$identity); /// Serializes this SignalingMessage to a JSON map. Map toJson(); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { properties ..add(DiagnosticsProperty('type', 'SignalingMessage')) ..add(DiagnosticsProperty('type', type))..add(DiagnosticsProperty('to', to))..add(DiagnosticsProperty('accountId', accountId))..add(DiagnosticsProperty('account', account))..add(DiagnosticsProperty('data', data)); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is SignalingMessage&&(identical(other.type, type) || other.type == type)&&(identical(other.to, to) || other.to == to)&&(identical(other.accountId, accountId) || other.accountId == accountId)&&(identical(other.account, account) || other.account == account)&&const DeepCollectionEquality().equals(other.data, data)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,type,to,accountId,account,const DeepCollectionEquality().hash(data)); @override String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) { return 'SignalingMessage(type: $type, to: $to, accountId: $accountId, account: $account, data: $data)'; } } /// @nodoc abstract mixin class $SignalingMessageCopyWith<$Res> { factory $SignalingMessageCopyWith(SignalingMessage value, $Res Function(SignalingMessage) _then) = _$SignalingMessageCopyWithImpl; @useResult $Res call({ String type, String? to, String accountId, SnAccount account, Map data }); $SnAccountCopyWith<$Res> get account; } /// @nodoc class _$SignalingMessageCopyWithImpl<$Res> implements $SignalingMessageCopyWith<$Res> { _$SignalingMessageCopyWithImpl(this._self, this._then); final SignalingMessage _self; final $Res Function(SignalingMessage) _then; /// Create a copy of SignalingMessage /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? type = null,Object? to = freezed,Object? accountId = null,Object? account = null,Object? data = null,}) { return _then(_self.copyWith( type: null == type ? _self.type : type // ignore: cast_nullable_to_non_nullable as String,to: freezed == to ? _self.to : to // ignore: cast_nullable_to_non_nullable as String?,accountId: null == accountId ? _self.accountId : accountId // ignore: cast_nullable_to_non_nullable as String,account: null == account ? _self.account : account // ignore: cast_nullable_to_non_nullable as SnAccount,data: null == data ? _self.data : data // ignore: cast_nullable_to_non_nullable as Map, )); } /// Create a copy of SignalingMessage /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SnAccountCopyWith<$Res> get account { return $SnAccountCopyWith<$Res>(_self.account, (value) { return _then(_self.copyWith(account: value)); }); } } /// Adds pattern-matching-related methods to [SignalingMessage]. extension SignalingMessagePatterns on SignalingMessage { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _SignalingMessage value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _SignalingMessage() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _SignalingMessage value) $default,){ final _that = this; switch (_that) { case _SignalingMessage(): return $default(_that);} } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _SignalingMessage value)? $default,){ final _that = this; switch (_that) { case _SignalingMessage() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( String type, String? to, String accountId, SnAccount account, Map data)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _SignalingMessage() when $default != null: return $default(_that.type,_that.to,_that.accountId,_that.account,_that.data);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( String type, String? to, String accountId, SnAccount account, Map data) $default,) {final _that = this; switch (_that) { case _SignalingMessage(): return $default(_that.type,_that.to,_that.accountId,_that.account,_that.data);} } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( String type, String? to, String accountId, SnAccount account, Map data)? $default,) {final _that = this; switch (_that) { case _SignalingMessage() when $default != null: return $default(_that.type,_that.to,_that.accountId,_that.account,_that.data);case _: return null; } } } /// @nodoc @JsonSerializable() class _SignalingMessage with DiagnosticableTreeMixin implements SignalingMessage { const _SignalingMessage({required this.type, this.to, required this.accountId, required this.account, required final Map data}): _data = data; factory _SignalingMessage.fromJson(Map json) => _$SignalingMessageFromJson(json); @override final String type; // CHANGED: Added 'to' field for directed messaging @override final String? to; @override final String accountId; @override final SnAccount account; final Map _data; @override Map get data { if (_data is EqualUnmodifiableMapView) return _data; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_data); } /// Create a copy of SignalingMessage /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$SignalingMessageCopyWith<_SignalingMessage> get copyWith => __$SignalingMessageCopyWithImpl<_SignalingMessage>(this, _$identity); @override Map toJson() { return _$SignalingMessageToJson(this, ); } @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { properties ..add(DiagnosticsProperty('type', 'SignalingMessage')) ..add(DiagnosticsProperty('type', type))..add(DiagnosticsProperty('to', to))..add(DiagnosticsProperty('accountId', accountId))..add(DiagnosticsProperty('account', account))..add(DiagnosticsProperty('data', data)); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _SignalingMessage&&(identical(other.type, type) || other.type == type)&&(identical(other.to, to) || other.to == to)&&(identical(other.accountId, accountId) || other.accountId == accountId)&&(identical(other.account, account) || other.account == account)&&const DeepCollectionEquality().equals(other._data, _data)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,type,to,accountId,account,const DeepCollectionEquality().hash(_data)); @override String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) { return 'SignalingMessage(type: $type, to: $to, accountId: $accountId, account: $account, data: $data)'; } } /// @nodoc abstract mixin class _$SignalingMessageCopyWith<$Res> implements $SignalingMessageCopyWith<$Res> { factory _$SignalingMessageCopyWith(_SignalingMessage value, $Res Function(_SignalingMessage) _then) = __$SignalingMessageCopyWithImpl; @override @useResult $Res call({ String type, String? to, String accountId, SnAccount account, Map data }); @override $SnAccountCopyWith<$Res> get account; } /// @nodoc class __$SignalingMessageCopyWithImpl<$Res> implements _$SignalingMessageCopyWith<$Res> { __$SignalingMessageCopyWithImpl(this._self, this._then); final _SignalingMessage _self; final $Res Function(_SignalingMessage) _then; /// Create a copy of SignalingMessage /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? type = null,Object? to = freezed,Object? accountId = null,Object? account = null,Object? data = null,}) { return _then(_SignalingMessage( type: null == type ? _self.type : type // ignore: cast_nullable_to_non_nullable as String,to: freezed == to ? _self.to : to // ignore: cast_nullable_to_non_nullable as String?,accountId: null == accountId ? _self.accountId : accountId // ignore: cast_nullable_to_non_nullable as String,account: null == account ? _self.account : account // ignore: cast_nullable_to_non_nullable as SnAccount,data: null == data ? _self._data : data // ignore: cast_nullable_to_non_nullable as Map, )); } /// Create a copy of SignalingMessage /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SnAccountCopyWith<$Res> get account { return $SnAccountCopyWith<$Res>(_self.account, (value) { return _then(_self.copyWith(account: value)); }); } } /// @nodoc mixin _$WebRTCWelcomeMessage implements DiagnosticableTreeMixin { String get userId; String get roomId; String get message; String get timestamp;// CHANGED: Added participants list List get participants; /// Create a copy of WebRTCWelcomeMessage /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $WebRTCWelcomeMessageCopyWith get copyWith => _$WebRTCWelcomeMessageCopyWithImpl(this as WebRTCWelcomeMessage, _$identity); /// Serializes this WebRTCWelcomeMessage to a JSON map. Map toJson(); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { properties ..add(DiagnosticsProperty('type', 'WebRTCWelcomeMessage')) ..add(DiagnosticsProperty('userId', userId))..add(DiagnosticsProperty('roomId', roomId))..add(DiagnosticsProperty('message', message))..add(DiagnosticsProperty('timestamp', timestamp))..add(DiagnosticsProperty('participants', participants)); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is WebRTCWelcomeMessage&&(identical(other.userId, userId) || other.userId == userId)&&(identical(other.roomId, roomId) || other.roomId == roomId)&&(identical(other.message, message) || other.message == message)&&(identical(other.timestamp, timestamp) || other.timestamp == timestamp)&&const DeepCollectionEquality().equals(other.participants, participants)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,userId,roomId,message,timestamp,const DeepCollectionEquality().hash(participants)); @override String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) { return 'WebRTCWelcomeMessage(userId: $userId, roomId: $roomId, message: $message, timestamp: $timestamp, participants: $participants)'; } } /// @nodoc abstract mixin class $WebRTCWelcomeMessageCopyWith<$Res> { factory $WebRTCWelcomeMessageCopyWith(WebRTCWelcomeMessage value, $Res Function(WebRTCWelcomeMessage) _then) = _$WebRTCWelcomeMessageCopyWithImpl; @useResult $Res call({ String userId, String roomId, String message, String timestamp, List participants }); } /// @nodoc class _$WebRTCWelcomeMessageCopyWithImpl<$Res> implements $WebRTCWelcomeMessageCopyWith<$Res> { _$WebRTCWelcomeMessageCopyWithImpl(this._self, this._then); final WebRTCWelcomeMessage _self; final $Res Function(WebRTCWelcomeMessage) _then; /// Create a copy of WebRTCWelcomeMessage /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? userId = null,Object? roomId = null,Object? message = null,Object? timestamp = null,Object? participants = null,}) { return _then(_self.copyWith( userId: null == userId ? _self.userId : userId // ignore: cast_nullable_to_non_nullable as String,roomId: null == roomId ? _self.roomId : roomId // ignore: cast_nullable_to_non_nullable as String,message: null == message ? _self.message : message // ignore: cast_nullable_to_non_nullable as String,timestamp: null == timestamp ? _self.timestamp : timestamp // ignore: cast_nullable_to_non_nullable as String,participants: null == participants ? _self.participants : participants // ignore: cast_nullable_to_non_nullable as List, )); } } /// Adds pattern-matching-related methods to [WebRTCWelcomeMessage]. extension WebRTCWelcomeMessagePatterns on WebRTCWelcomeMessage { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _WebRTCWelcomeMessage value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _WebRTCWelcomeMessage() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _WebRTCWelcomeMessage value) $default,){ final _that = this; switch (_that) { case _WebRTCWelcomeMessage(): return $default(_that);} } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _WebRTCWelcomeMessage value)? $default,){ final _that = this; switch (_that) { case _WebRTCWelcomeMessage() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( String userId, String roomId, String message, String timestamp, List participants)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _WebRTCWelcomeMessage() when $default != null: return $default(_that.userId,_that.roomId,_that.message,_that.timestamp,_that.participants);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( String userId, String roomId, String message, String timestamp, List participants) $default,) {final _that = this; switch (_that) { case _WebRTCWelcomeMessage(): return $default(_that.userId,_that.roomId,_that.message,_that.timestamp,_that.participants);} } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( String userId, String roomId, String message, String timestamp, List participants)? $default,) {final _that = this; switch (_that) { case _WebRTCWelcomeMessage() when $default != null: return $default(_that.userId,_that.roomId,_that.message,_that.timestamp,_that.participants);case _: return null; } } } /// @nodoc @JsonSerializable() class _WebRTCWelcomeMessage with DiagnosticableTreeMixin implements WebRTCWelcomeMessage { const _WebRTCWelcomeMessage({required this.userId, required this.roomId, required this.message, required this.timestamp, final List participants = const []}): _participants = participants; factory _WebRTCWelcomeMessage.fromJson(Map json) => _$WebRTCWelcomeMessageFromJson(json); @override final String userId; @override final String roomId; @override final String message; @override final String timestamp; // CHANGED: Added participants list final List _participants; // CHANGED: Added participants list @override@JsonKey() List get participants { if (_participants is EqualUnmodifiableListView) return _participants; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_participants); } /// Create a copy of WebRTCWelcomeMessage /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$WebRTCWelcomeMessageCopyWith<_WebRTCWelcomeMessage> get copyWith => __$WebRTCWelcomeMessageCopyWithImpl<_WebRTCWelcomeMessage>(this, _$identity); @override Map toJson() { return _$WebRTCWelcomeMessageToJson(this, ); } @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { properties ..add(DiagnosticsProperty('type', 'WebRTCWelcomeMessage')) ..add(DiagnosticsProperty('userId', userId))..add(DiagnosticsProperty('roomId', roomId))..add(DiagnosticsProperty('message', message))..add(DiagnosticsProperty('timestamp', timestamp))..add(DiagnosticsProperty('participants', participants)); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _WebRTCWelcomeMessage&&(identical(other.userId, userId) || other.userId == userId)&&(identical(other.roomId, roomId) || other.roomId == roomId)&&(identical(other.message, message) || other.message == message)&&(identical(other.timestamp, timestamp) || other.timestamp == timestamp)&&const DeepCollectionEquality().equals(other._participants, _participants)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,userId,roomId,message,timestamp,const DeepCollectionEquality().hash(_participants)); @override String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) { return 'WebRTCWelcomeMessage(userId: $userId, roomId: $roomId, message: $message, timestamp: $timestamp, participants: $participants)'; } } /// @nodoc abstract mixin class _$WebRTCWelcomeMessageCopyWith<$Res> implements $WebRTCWelcomeMessageCopyWith<$Res> { factory _$WebRTCWelcomeMessageCopyWith(_WebRTCWelcomeMessage value, $Res Function(_WebRTCWelcomeMessage) _then) = __$WebRTCWelcomeMessageCopyWithImpl; @override @useResult $Res call({ String userId, String roomId, String message, String timestamp, List participants }); } /// @nodoc class __$WebRTCWelcomeMessageCopyWithImpl<$Res> implements _$WebRTCWelcomeMessageCopyWith<$Res> { __$WebRTCWelcomeMessageCopyWithImpl(this._self, this._then); final _WebRTCWelcomeMessage _self; final $Res Function(_WebRTCWelcomeMessage) _then; /// Create a copy of WebRTCWelcomeMessage /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? userId = null,Object? roomId = null,Object? message = null,Object? timestamp = null,Object? participants = null,}) { return _then(_WebRTCWelcomeMessage( userId: null == userId ? _self.userId : userId // ignore: cast_nullable_to_non_nullable as String,roomId: null == roomId ? _self.roomId : roomId // ignore: cast_nullable_to_non_nullable as String,message: null == message ? _self.message : message // ignore: cast_nullable_to_non_nullable as String,timestamp: null == timestamp ? _self.timestamp : timestamp // ignore: cast_nullable_to_non_nullable as String,participants: null == participants ? _self._participants : participants // ignore: cast_nullable_to_non_nullable as List, )); } } // dart format on