// dart format width=80 // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // 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 'chat.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** // dart format off T _$identity(T value) => value; /// @nodoc mixin _$SnChat { int get id; String get name; String get description; int get type; bool get isPublic; String? get pictureId; SnCloudFile? get picture; String? get backgroundId; SnCloudFile? get background; int? get realmId; SnRealm? get realm; DateTime get createdAt; DateTime get updatedAt; DateTime? get deletedAt; /// Create a copy of SnChat /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SnChatCopyWith get copyWith => _$SnChatCopyWithImpl(this as SnChat, _$identity); /// Serializes this SnChat to a JSON map. Map toJson(); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is SnChat&&(identical(other.id, id) || other.id == id)&&(identical(other.name, name) || other.name == name)&&(identical(other.description, description) || other.description == description)&&(identical(other.type, type) || other.type == type)&&(identical(other.isPublic, isPublic) || other.isPublic == isPublic)&&(identical(other.pictureId, pictureId) || other.pictureId == pictureId)&&(identical(other.picture, picture) || other.picture == picture)&&(identical(other.backgroundId, backgroundId) || other.backgroundId == backgroundId)&&(identical(other.background, background) || other.background == background)&&(identical(other.realmId, realmId) || other.realmId == realmId)&&(identical(other.realm, realm) || other.realm == realm)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)&&(identical(other.deletedAt, deletedAt) || other.deletedAt == deletedAt)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,id,name,description,type,isPublic,pictureId,picture,backgroundId,background,realmId,realm,createdAt,updatedAt,deletedAt); @override String toString() { return 'SnChat(id: $id, name: $name, description: $description, type: $type, isPublic: $isPublic, pictureId: $pictureId, picture: $picture, backgroundId: $backgroundId, background: $background, realmId: $realmId, realm: $realm, createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt)'; } } /// @nodoc abstract mixin class $SnChatCopyWith<$Res> { factory $SnChatCopyWith(SnChat value, $Res Function(SnChat) _then) = _$SnChatCopyWithImpl; @useResult $Res call({ int id, String name, String description, int type, bool isPublic, String? pictureId, SnCloudFile? picture, String? backgroundId, SnCloudFile? background, int? realmId, SnRealm? realm, DateTime createdAt, DateTime updatedAt, DateTime? deletedAt }); $SnCloudFileCopyWith<$Res>? get picture;$SnCloudFileCopyWith<$Res>? get background;$SnRealmCopyWith<$Res>? get realm; } /// @nodoc class _$SnChatCopyWithImpl<$Res> implements $SnChatCopyWith<$Res> { _$SnChatCopyWithImpl(this._self, this._then); final SnChat _self; final $Res Function(SnChat) _then; /// Create a copy of SnChat /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? id = null,Object? name = null,Object? description = null,Object? type = null,Object? isPublic = null,Object? pictureId = freezed,Object? picture = freezed,Object? backgroundId = freezed,Object? background = freezed,Object? realmId = freezed,Object? realm = freezed,Object? createdAt = null,Object? updatedAt = null,Object? deletedAt = freezed,}) { return _then(_self.copyWith( id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as int,name: null == name ? _self.name : name // ignore: cast_nullable_to_non_nullable as String,description: null == description ? _self.description : description // ignore: cast_nullable_to_non_nullable as String,type: null == type ? _self.type : type // ignore: cast_nullable_to_non_nullable as int,isPublic: null == isPublic ? _self.isPublic : isPublic // ignore: cast_nullable_to_non_nullable as bool,pictureId: freezed == pictureId ? _self.pictureId : pictureId // ignore: cast_nullable_to_non_nullable as String?,picture: freezed == picture ? _self.picture : picture // ignore: cast_nullable_to_non_nullable as SnCloudFile?,backgroundId: freezed == backgroundId ? _self.backgroundId : backgroundId // ignore: cast_nullable_to_non_nullable as String?,background: freezed == background ? _self.background : background // ignore: cast_nullable_to_non_nullable as SnCloudFile?,realmId: freezed == realmId ? _self.realmId : realmId // ignore: cast_nullable_to_non_nullable as int?,realm: freezed == realm ? _self.realm : realm // ignore: cast_nullable_to_non_nullable as SnRealm?,createdAt: null == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime,updatedAt: null == updatedAt ? _self.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as DateTime,deletedAt: freezed == deletedAt ? _self.deletedAt : deletedAt // ignore: cast_nullable_to_non_nullable as DateTime?, )); } /// Create a copy of SnChat /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SnCloudFileCopyWith<$Res>? get picture { if (_self.picture == null) { return null; } return $SnCloudFileCopyWith<$Res>(_self.picture!, (value) { return _then(_self.copyWith(picture: value)); }); }/// Create a copy of SnChat /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SnCloudFileCopyWith<$Res>? get background { if (_self.background == null) { return null; } return $SnCloudFileCopyWith<$Res>(_self.background!, (value) { return _then(_self.copyWith(background: value)); }); }/// Create a copy of SnChat /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SnRealmCopyWith<$Res>? get realm { if (_self.realm == null) { return null; } return $SnRealmCopyWith<$Res>(_self.realm!, (value) { return _then(_self.copyWith(realm: value)); }); } } /// @nodoc @JsonSerializable() class _SnChat implements SnChat { const _SnChat({required this.id, required this.name, required this.description, required this.type, required this.isPublic, required this.pictureId, required this.picture, required this.backgroundId, required this.background, required this.realmId, required this.realm, required this.createdAt, required this.updatedAt, required this.deletedAt}); factory _SnChat.fromJson(Map json) => _$SnChatFromJson(json); @override final int id; @override final String name; @override final String description; @override final int type; @override final bool isPublic; @override final String? pictureId; @override final SnCloudFile? picture; @override final String? backgroundId; @override final SnCloudFile? background; @override final int? realmId; @override final SnRealm? realm; @override final DateTime createdAt; @override final DateTime updatedAt; @override final DateTime? deletedAt; /// Create a copy of SnChat /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$SnChatCopyWith<_SnChat> get copyWith => __$SnChatCopyWithImpl<_SnChat>(this, _$identity); @override Map toJson() { return _$SnChatToJson(this, ); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _SnChat&&(identical(other.id, id) || other.id == id)&&(identical(other.name, name) || other.name == name)&&(identical(other.description, description) || other.description == description)&&(identical(other.type, type) || other.type == type)&&(identical(other.isPublic, isPublic) || other.isPublic == isPublic)&&(identical(other.pictureId, pictureId) || other.pictureId == pictureId)&&(identical(other.picture, picture) || other.picture == picture)&&(identical(other.backgroundId, backgroundId) || other.backgroundId == backgroundId)&&(identical(other.background, background) || other.background == background)&&(identical(other.realmId, realmId) || other.realmId == realmId)&&(identical(other.realm, realm) || other.realm == realm)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)&&(identical(other.deletedAt, deletedAt) || other.deletedAt == deletedAt)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,id,name,description,type,isPublic,pictureId,picture,backgroundId,background,realmId,realm,createdAt,updatedAt,deletedAt); @override String toString() { return 'SnChat(id: $id, name: $name, description: $description, type: $type, isPublic: $isPublic, pictureId: $pictureId, picture: $picture, backgroundId: $backgroundId, background: $background, realmId: $realmId, realm: $realm, createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt)'; } } /// @nodoc abstract mixin class _$SnChatCopyWith<$Res> implements $SnChatCopyWith<$Res> { factory _$SnChatCopyWith(_SnChat value, $Res Function(_SnChat) _then) = __$SnChatCopyWithImpl; @override @useResult $Res call({ int id, String name, String description, int type, bool isPublic, String? pictureId, SnCloudFile? picture, String? backgroundId, SnCloudFile? background, int? realmId, SnRealm? realm, DateTime createdAt, DateTime updatedAt, DateTime? deletedAt }); @override $SnCloudFileCopyWith<$Res>? get picture;@override $SnCloudFileCopyWith<$Res>? get background;@override $SnRealmCopyWith<$Res>? get realm; } /// @nodoc class __$SnChatCopyWithImpl<$Res> implements _$SnChatCopyWith<$Res> { __$SnChatCopyWithImpl(this._self, this._then); final _SnChat _self; final $Res Function(_SnChat) _then; /// Create a copy of SnChat /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? id = null,Object? name = null,Object? description = null,Object? type = null,Object? isPublic = null,Object? pictureId = freezed,Object? picture = freezed,Object? backgroundId = freezed,Object? background = freezed,Object? realmId = freezed,Object? realm = freezed,Object? createdAt = null,Object? updatedAt = null,Object? deletedAt = freezed,}) { return _then(_SnChat( id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as int,name: null == name ? _self.name : name // ignore: cast_nullable_to_non_nullable as String,description: null == description ? _self.description : description // ignore: cast_nullable_to_non_nullable as String,type: null == type ? _self.type : type // ignore: cast_nullable_to_non_nullable as int,isPublic: null == isPublic ? _self.isPublic : isPublic // ignore: cast_nullable_to_non_nullable as bool,pictureId: freezed == pictureId ? _self.pictureId : pictureId // ignore: cast_nullable_to_non_nullable as String?,picture: freezed == picture ? _self.picture : picture // ignore: cast_nullable_to_non_nullable as SnCloudFile?,backgroundId: freezed == backgroundId ? _self.backgroundId : backgroundId // ignore: cast_nullable_to_non_nullable as String?,background: freezed == background ? _self.background : background // ignore: cast_nullable_to_non_nullable as SnCloudFile?,realmId: freezed == realmId ? _self.realmId : realmId // ignore: cast_nullable_to_non_nullable as int?,realm: freezed == realm ? _self.realm : realm // ignore: cast_nullable_to_non_nullable as SnRealm?,createdAt: null == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime,updatedAt: null == updatedAt ? _self.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as DateTime,deletedAt: freezed == deletedAt ? _self.deletedAt : deletedAt // ignore: cast_nullable_to_non_nullable as DateTime?, )); } /// Create a copy of SnChat /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SnCloudFileCopyWith<$Res>? get picture { if (_self.picture == null) { return null; } return $SnCloudFileCopyWith<$Res>(_self.picture!, (value) { return _then(_self.copyWith(picture: value)); }); }/// Create a copy of SnChat /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SnCloudFileCopyWith<$Res>? get background { if (_self.background == null) { return null; } return $SnCloudFileCopyWith<$Res>(_self.background!, (value) { return _then(_self.copyWith(background: value)); }); }/// Create a copy of SnChat /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SnRealmCopyWith<$Res>? get realm { if (_self.realm == null) { return null; } return $SnRealmCopyWith<$Res>(_self.realm!, (value) { return _then(_self.copyWith(realm: value)); }); } } /// @nodoc mixin _$SnChatMessage { DateTime get createdAt; DateTime get updatedAt; DateTime? get deletedAt; String get id; String? get content; String? get nonce; Map get meta; List get membersMetioned; DateTime? get editedAt; List get attachments; List get reactions; String? get repliedMessageId; String? get forwardedMessageId; String get senderId; SnChatMember get sender; int get chatRoomId; /// Create a copy of SnChatMessage /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SnChatMessageCopyWith get copyWith => _$SnChatMessageCopyWithImpl(this as SnChatMessage, _$identity); /// Serializes this SnChatMessage to a JSON map. Map toJson(); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is SnChatMessage&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)&&(identical(other.deletedAt, deletedAt) || other.deletedAt == deletedAt)&&(identical(other.id, id) || other.id == id)&&(identical(other.content, content) || other.content == content)&&(identical(other.nonce, nonce) || other.nonce == nonce)&&const DeepCollectionEquality().equals(other.meta, meta)&&const DeepCollectionEquality().equals(other.membersMetioned, membersMetioned)&&(identical(other.editedAt, editedAt) || other.editedAt == editedAt)&&const DeepCollectionEquality().equals(other.attachments, attachments)&&const DeepCollectionEquality().equals(other.reactions, reactions)&&(identical(other.repliedMessageId, repliedMessageId) || other.repliedMessageId == repliedMessageId)&&(identical(other.forwardedMessageId, forwardedMessageId) || other.forwardedMessageId == forwardedMessageId)&&(identical(other.senderId, senderId) || other.senderId == senderId)&&(identical(other.sender, sender) || other.sender == sender)&&(identical(other.chatRoomId, chatRoomId) || other.chatRoomId == chatRoomId)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,createdAt,updatedAt,deletedAt,id,content,nonce,const DeepCollectionEquality().hash(meta),const DeepCollectionEquality().hash(membersMetioned),editedAt,const DeepCollectionEquality().hash(attachments),const DeepCollectionEquality().hash(reactions),repliedMessageId,forwardedMessageId,senderId,sender,chatRoomId); @override String toString() { return 'SnChatMessage(createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt, id: $id, content: $content, nonce: $nonce, meta: $meta, membersMetioned: $membersMetioned, editedAt: $editedAt, attachments: $attachments, reactions: $reactions, repliedMessageId: $repliedMessageId, forwardedMessageId: $forwardedMessageId, senderId: $senderId, sender: $sender, chatRoomId: $chatRoomId)'; } } /// @nodoc abstract mixin class $SnChatMessageCopyWith<$Res> { factory $SnChatMessageCopyWith(SnChatMessage value, $Res Function(SnChatMessage) _then) = _$SnChatMessageCopyWithImpl; @useResult $Res call({ DateTime createdAt, DateTime updatedAt, DateTime? deletedAt, String id, String? content, String? nonce, Map meta, List membersMetioned, DateTime? editedAt, List attachments, List reactions, String? repliedMessageId, String? forwardedMessageId, String senderId, SnChatMember sender, int chatRoomId }); $SnChatMemberCopyWith<$Res> get sender; } /// @nodoc class _$SnChatMessageCopyWithImpl<$Res> implements $SnChatMessageCopyWith<$Res> { _$SnChatMessageCopyWithImpl(this._self, this._then); final SnChatMessage _self; final $Res Function(SnChatMessage) _then; /// Create a copy of SnChatMessage /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? createdAt = null,Object? updatedAt = null,Object? deletedAt = freezed,Object? id = null,Object? content = freezed,Object? nonce = freezed,Object? meta = null,Object? membersMetioned = null,Object? editedAt = freezed,Object? attachments = null,Object? reactions = null,Object? repliedMessageId = freezed,Object? forwardedMessageId = freezed,Object? senderId = null,Object? sender = null,Object? chatRoomId = null,}) { return _then(_self.copyWith( createdAt: null == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime,updatedAt: null == updatedAt ? _self.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as DateTime,deletedAt: freezed == deletedAt ? _self.deletedAt : deletedAt // ignore: cast_nullable_to_non_nullable as DateTime?,id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String,content: freezed == content ? _self.content : content // ignore: cast_nullable_to_non_nullable as String?,nonce: freezed == nonce ? _self.nonce : nonce // ignore: cast_nullable_to_non_nullable as String?,meta: null == meta ? _self.meta : meta // ignore: cast_nullable_to_non_nullable as Map,membersMetioned: null == membersMetioned ? _self.membersMetioned : membersMetioned // ignore: cast_nullable_to_non_nullable as List,editedAt: freezed == editedAt ? _self.editedAt : editedAt // ignore: cast_nullable_to_non_nullable as DateTime?,attachments: null == attachments ? _self.attachments : attachments // ignore: cast_nullable_to_non_nullable as List,reactions: null == reactions ? _self.reactions : reactions // ignore: cast_nullable_to_non_nullable as List,repliedMessageId: freezed == repliedMessageId ? _self.repliedMessageId : repliedMessageId // ignore: cast_nullable_to_non_nullable as String?,forwardedMessageId: freezed == forwardedMessageId ? _self.forwardedMessageId : forwardedMessageId // ignore: cast_nullable_to_non_nullable as String?,senderId: null == senderId ? _self.senderId : senderId // ignore: cast_nullable_to_non_nullable as String,sender: null == sender ? _self.sender : sender // ignore: cast_nullable_to_non_nullable as SnChatMember,chatRoomId: null == chatRoomId ? _self.chatRoomId : chatRoomId // ignore: cast_nullable_to_non_nullable as int, )); } /// Create a copy of SnChatMessage /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SnChatMemberCopyWith<$Res> get sender { return $SnChatMemberCopyWith<$Res>(_self.sender, (value) { return _then(_self.copyWith(sender: value)); }); } } /// @nodoc @JsonSerializable() class _SnChatMessage implements SnChatMessage { const _SnChatMessage({required this.createdAt, required this.updatedAt, this.deletedAt, required this.id, this.content, this.nonce, final Map meta = const {}, final List membersMetioned = const [], this.editedAt, final List attachments = const [], final List reactions = const [], this.repliedMessageId, this.forwardedMessageId, required this.senderId, required this.sender, required this.chatRoomId}): _meta = meta,_membersMetioned = membersMetioned,_attachments = attachments,_reactions = reactions; factory _SnChatMessage.fromJson(Map json) => _$SnChatMessageFromJson(json); @override final DateTime createdAt; @override final DateTime updatedAt; @override final DateTime? deletedAt; @override final String id; @override final String? content; @override final String? nonce; final Map _meta; @override@JsonKey() Map get meta { if (_meta is EqualUnmodifiableMapView) return _meta; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_meta); } final List _membersMetioned; @override@JsonKey() List get membersMetioned { if (_membersMetioned is EqualUnmodifiableListView) return _membersMetioned; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_membersMetioned); } @override final DateTime? editedAt; final List _attachments; @override@JsonKey() List get attachments { if (_attachments is EqualUnmodifiableListView) return _attachments; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_attachments); } final List _reactions; @override@JsonKey() List get reactions { if (_reactions is EqualUnmodifiableListView) return _reactions; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_reactions); } @override final String? repliedMessageId; @override final String? forwardedMessageId; @override final String senderId; @override final SnChatMember sender; @override final int chatRoomId; /// Create a copy of SnChatMessage /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$SnChatMessageCopyWith<_SnChatMessage> get copyWith => __$SnChatMessageCopyWithImpl<_SnChatMessage>(this, _$identity); @override Map toJson() { return _$SnChatMessageToJson(this, ); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _SnChatMessage&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)&&(identical(other.deletedAt, deletedAt) || other.deletedAt == deletedAt)&&(identical(other.id, id) || other.id == id)&&(identical(other.content, content) || other.content == content)&&(identical(other.nonce, nonce) || other.nonce == nonce)&&const DeepCollectionEquality().equals(other._meta, _meta)&&const DeepCollectionEquality().equals(other._membersMetioned, _membersMetioned)&&(identical(other.editedAt, editedAt) || other.editedAt == editedAt)&&const DeepCollectionEquality().equals(other._attachments, _attachments)&&const DeepCollectionEquality().equals(other._reactions, _reactions)&&(identical(other.repliedMessageId, repliedMessageId) || other.repliedMessageId == repliedMessageId)&&(identical(other.forwardedMessageId, forwardedMessageId) || other.forwardedMessageId == forwardedMessageId)&&(identical(other.senderId, senderId) || other.senderId == senderId)&&(identical(other.sender, sender) || other.sender == sender)&&(identical(other.chatRoomId, chatRoomId) || other.chatRoomId == chatRoomId)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,createdAt,updatedAt,deletedAt,id,content,nonce,const DeepCollectionEquality().hash(_meta),const DeepCollectionEquality().hash(_membersMetioned),editedAt,const DeepCollectionEquality().hash(_attachments),const DeepCollectionEquality().hash(_reactions),repliedMessageId,forwardedMessageId,senderId,sender,chatRoomId); @override String toString() { return 'SnChatMessage(createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt, id: $id, content: $content, nonce: $nonce, meta: $meta, membersMetioned: $membersMetioned, editedAt: $editedAt, attachments: $attachments, reactions: $reactions, repliedMessageId: $repliedMessageId, forwardedMessageId: $forwardedMessageId, senderId: $senderId, sender: $sender, chatRoomId: $chatRoomId)'; } } /// @nodoc abstract mixin class _$SnChatMessageCopyWith<$Res> implements $SnChatMessageCopyWith<$Res> { factory _$SnChatMessageCopyWith(_SnChatMessage value, $Res Function(_SnChatMessage) _then) = __$SnChatMessageCopyWithImpl; @override @useResult $Res call({ DateTime createdAt, DateTime updatedAt, DateTime? deletedAt, String id, String? content, String? nonce, Map meta, List membersMetioned, DateTime? editedAt, List attachments, List reactions, String? repliedMessageId, String? forwardedMessageId, String senderId, SnChatMember sender, int chatRoomId }); @override $SnChatMemberCopyWith<$Res> get sender; } /// @nodoc class __$SnChatMessageCopyWithImpl<$Res> implements _$SnChatMessageCopyWith<$Res> { __$SnChatMessageCopyWithImpl(this._self, this._then); final _SnChatMessage _self; final $Res Function(_SnChatMessage) _then; /// Create a copy of SnChatMessage /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? createdAt = null,Object? updatedAt = null,Object? deletedAt = freezed,Object? id = null,Object? content = freezed,Object? nonce = freezed,Object? meta = null,Object? membersMetioned = null,Object? editedAt = freezed,Object? attachments = null,Object? reactions = null,Object? repliedMessageId = freezed,Object? forwardedMessageId = freezed,Object? senderId = null,Object? sender = null,Object? chatRoomId = null,}) { return _then(_SnChatMessage( createdAt: null == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime,updatedAt: null == updatedAt ? _self.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as DateTime,deletedAt: freezed == deletedAt ? _self.deletedAt : deletedAt // ignore: cast_nullable_to_non_nullable as DateTime?,id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String,content: freezed == content ? _self.content : content // ignore: cast_nullable_to_non_nullable as String?,nonce: freezed == nonce ? _self.nonce : nonce // ignore: cast_nullable_to_non_nullable as String?,meta: null == meta ? _self._meta : meta // ignore: cast_nullable_to_non_nullable as Map,membersMetioned: null == membersMetioned ? _self._membersMetioned : membersMetioned // ignore: cast_nullable_to_non_nullable as List,editedAt: freezed == editedAt ? _self.editedAt : editedAt // ignore: cast_nullable_to_non_nullable as DateTime?,attachments: null == attachments ? _self._attachments : attachments // ignore: cast_nullable_to_non_nullable as List,reactions: null == reactions ? _self._reactions : reactions // ignore: cast_nullable_to_non_nullable as List,repliedMessageId: freezed == repliedMessageId ? _self.repliedMessageId : repliedMessageId // ignore: cast_nullable_to_non_nullable as String?,forwardedMessageId: freezed == forwardedMessageId ? _self.forwardedMessageId : forwardedMessageId // ignore: cast_nullable_to_non_nullable as String?,senderId: null == senderId ? _self.senderId : senderId // ignore: cast_nullable_to_non_nullable as String,sender: null == sender ? _self.sender : sender // ignore: cast_nullable_to_non_nullable as SnChatMember,chatRoomId: null == chatRoomId ? _self.chatRoomId : chatRoomId // ignore: cast_nullable_to_non_nullable as int, )); } /// Create a copy of SnChatMessage /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SnChatMemberCopyWith<$Res> get sender { return $SnChatMemberCopyWith<$Res>(_self.sender, (value) { return _then(_self.copyWith(sender: value)); }); } } /// @nodoc mixin _$SnChatReaction { DateTime get createdAt; DateTime get updatedAt; DateTime? get deletedAt; String get id; String get messageId; String get senderId; SnChatMember get sender; String get symbol; int get attitude; /// Create a copy of SnChatReaction /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SnChatReactionCopyWith get copyWith => _$SnChatReactionCopyWithImpl(this as SnChatReaction, _$identity); /// Serializes this SnChatReaction to a JSON map. Map toJson(); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is SnChatReaction&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)&&(identical(other.deletedAt, deletedAt) || other.deletedAt == deletedAt)&&(identical(other.id, id) || other.id == id)&&(identical(other.messageId, messageId) || other.messageId == messageId)&&(identical(other.senderId, senderId) || other.senderId == senderId)&&(identical(other.sender, sender) || other.sender == sender)&&(identical(other.symbol, symbol) || other.symbol == symbol)&&(identical(other.attitude, attitude) || other.attitude == attitude)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,createdAt,updatedAt,deletedAt,id,messageId,senderId,sender,symbol,attitude); @override String toString() { return 'SnChatReaction(createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt, id: $id, messageId: $messageId, senderId: $senderId, sender: $sender, symbol: $symbol, attitude: $attitude)'; } } /// @nodoc abstract mixin class $SnChatReactionCopyWith<$Res> { factory $SnChatReactionCopyWith(SnChatReaction value, $Res Function(SnChatReaction) _then) = _$SnChatReactionCopyWithImpl; @useResult $Res call({ DateTime createdAt, DateTime updatedAt, DateTime? deletedAt, String id, String messageId, String senderId, SnChatMember sender, String symbol, int attitude }); $SnChatMemberCopyWith<$Res> get sender; } /// @nodoc class _$SnChatReactionCopyWithImpl<$Res> implements $SnChatReactionCopyWith<$Res> { _$SnChatReactionCopyWithImpl(this._self, this._then); final SnChatReaction _self; final $Res Function(SnChatReaction) _then; /// Create a copy of SnChatReaction /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? createdAt = null,Object? updatedAt = null,Object? deletedAt = freezed,Object? id = null,Object? messageId = null,Object? senderId = null,Object? sender = null,Object? symbol = null,Object? attitude = null,}) { return _then(_self.copyWith( createdAt: null == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime,updatedAt: null == updatedAt ? _self.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as DateTime,deletedAt: freezed == deletedAt ? _self.deletedAt : deletedAt // ignore: cast_nullable_to_non_nullable as DateTime?,id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String,messageId: null == messageId ? _self.messageId : messageId // ignore: cast_nullable_to_non_nullable as String,senderId: null == senderId ? _self.senderId : senderId // ignore: cast_nullable_to_non_nullable as String,sender: null == sender ? _self.sender : sender // ignore: cast_nullable_to_non_nullable as SnChatMember,symbol: null == symbol ? _self.symbol : symbol // ignore: cast_nullable_to_non_nullable as String,attitude: null == attitude ? _self.attitude : attitude // ignore: cast_nullable_to_non_nullable as int, )); } /// Create a copy of SnChatReaction /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SnChatMemberCopyWith<$Res> get sender { return $SnChatMemberCopyWith<$Res>(_self.sender, (value) { return _then(_self.copyWith(sender: value)); }); } } /// @nodoc @JsonSerializable() class _SnChatReaction implements SnChatReaction { const _SnChatReaction({required this.createdAt, required this.updatedAt, required this.deletedAt, required this.id, required this.messageId, required this.senderId, required this.sender, required this.symbol, required this.attitude}); factory _SnChatReaction.fromJson(Map json) => _$SnChatReactionFromJson(json); @override final DateTime createdAt; @override final DateTime updatedAt; @override final DateTime? deletedAt; @override final String id; @override final String messageId; @override final String senderId; @override final SnChatMember sender; @override final String symbol; @override final int attitude; /// Create a copy of SnChatReaction /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$SnChatReactionCopyWith<_SnChatReaction> get copyWith => __$SnChatReactionCopyWithImpl<_SnChatReaction>(this, _$identity); @override Map toJson() { return _$SnChatReactionToJson(this, ); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _SnChatReaction&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)&&(identical(other.deletedAt, deletedAt) || other.deletedAt == deletedAt)&&(identical(other.id, id) || other.id == id)&&(identical(other.messageId, messageId) || other.messageId == messageId)&&(identical(other.senderId, senderId) || other.senderId == senderId)&&(identical(other.sender, sender) || other.sender == sender)&&(identical(other.symbol, symbol) || other.symbol == symbol)&&(identical(other.attitude, attitude) || other.attitude == attitude)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,createdAt,updatedAt,deletedAt,id,messageId,senderId,sender,symbol,attitude); @override String toString() { return 'SnChatReaction(createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt, id: $id, messageId: $messageId, senderId: $senderId, sender: $sender, symbol: $symbol, attitude: $attitude)'; } } /// @nodoc abstract mixin class _$SnChatReactionCopyWith<$Res> implements $SnChatReactionCopyWith<$Res> { factory _$SnChatReactionCopyWith(_SnChatReaction value, $Res Function(_SnChatReaction) _then) = __$SnChatReactionCopyWithImpl; @override @useResult $Res call({ DateTime createdAt, DateTime updatedAt, DateTime? deletedAt, String id, String messageId, String senderId, SnChatMember sender, String symbol, int attitude }); @override $SnChatMemberCopyWith<$Res> get sender; } /// @nodoc class __$SnChatReactionCopyWithImpl<$Res> implements _$SnChatReactionCopyWith<$Res> { __$SnChatReactionCopyWithImpl(this._self, this._then); final _SnChatReaction _self; final $Res Function(_SnChatReaction) _then; /// Create a copy of SnChatReaction /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? createdAt = null,Object? updatedAt = null,Object? deletedAt = freezed,Object? id = null,Object? messageId = null,Object? senderId = null,Object? sender = null,Object? symbol = null,Object? attitude = null,}) { return _then(_SnChatReaction( createdAt: null == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime,updatedAt: null == updatedAt ? _self.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as DateTime,deletedAt: freezed == deletedAt ? _self.deletedAt : deletedAt // ignore: cast_nullable_to_non_nullable as DateTime?,id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String,messageId: null == messageId ? _self.messageId : messageId // ignore: cast_nullable_to_non_nullable as String,senderId: null == senderId ? _self.senderId : senderId // ignore: cast_nullable_to_non_nullable as String,sender: null == sender ? _self.sender : sender // ignore: cast_nullable_to_non_nullable as SnChatMember,symbol: null == symbol ? _self.symbol : symbol // ignore: cast_nullable_to_non_nullable as String,attitude: null == attitude ? _self.attitude : attitude // ignore: cast_nullable_to_non_nullable as int, )); } /// Create a copy of SnChatReaction /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SnChatMemberCopyWith<$Res> get sender { return $SnChatMemberCopyWith<$Res>(_self.sender, (value) { return _then(_self.copyWith(sender: value)); }); } } /// @nodoc mixin _$SnChatMember { DateTime get createdAt; DateTime get updatedAt; DateTime? get deletedAt; String get id; int get chatRoomId; SnChat? get chatRoom; int get accountId; SnAccount get account; String? get nick; int get role; int get notify; DateTime? get joinedAt; bool get isBot; /// Create a copy of SnChatMember /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SnChatMemberCopyWith get copyWith => _$SnChatMemberCopyWithImpl(this as SnChatMember, _$identity); /// Serializes this SnChatMember to a JSON map. Map toJson(); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is SnChatMember&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)&&(identical(other.deletedAt, deletedAt) || other.deletedAt == deletedAt)&&(identical(other.id, id) || other.id == id)&&(identical(other.chatRoomId, chatRoomId) || other.chatRoomId == chatRoomId)&&(identical(other.chatRoom, chatRoom) || other.chatRoom == chatRoom)&&(identical(other.accountId, accountId) || other.accountId == accountId)&&(identical(other.account, account) || other.account == account)&&(identical(other.nick, nick) || other.nick == nick)&&(identical(other.role, role) || other.role == role)&&(identical(other.notify, notify) || other.notify == notify)&&(identical(other.joinedAt, joinedAt) || other.joinedAt == joinedAt)&&(identical(other.isBot, isBot) || other.isBot == isBot)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,createdAt,updatedAt,deletedAt,id,chatRoomId,chatRoom,accountId,account,nick,role,notify,joinedAt,isBot); @override String toString() { return 'SnChatMember(createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt, id: $id, chatRoomId: $chatRoomId, chatRoom: $chatRoom, accountId: $accountId, account: $account, nick: $nick, role: $role, notify: $notify, joinedAt: $joinedAt, isBot: $isBot)'; } } /// @nodoc abstract mixin class $SnChatMemberCopyWith<$Res> { factory $SnChatMemberCopyWith(SnChatMember value, $Res Function(SnChatMember) _then) = _$SnChatMemberCopyWithImpl; @useResult $Res call({ DateTime createdAt, DateTime updatedAt, DateTime? deletedAt, String id, int chatRoomId, SnChat? chatRoom, int accountId, SnAccount account, String? nick, int role, int notify, DateTime? joinedAt, bool isBot }); $SnChatCopyWith<$Res>? get chatRoom;$SnAccountCopyWith<$Res> get account; } /// @nodoc class _$SnChatMemberCopyWithImpl<$Res> implements $SnChatMemberCopyWith<$Res> { _$SnChatMemberCopyWithImpl(this._self, this._then); final SnChatMember _self; final $Res Function(SnChatMember) _then; /// Create a copy of SnChatMember /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? createdAt = null,Object? updatedAt = null,Object? deletedAt = freezed,Object? id = null,Object? chatRoomId = null,Object? chatRoom = freezed,Object? accountId = null,Object? account = null,Object? nick = freezed,Object? role = null,Object? notify = null,Object? joinedAt = freezed,Object? isBot = null,}) { return _then(_self.copyWith( createdAt: null == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime,updatedAt: null == updatedAt ? _self.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as DateTime,deletedAt: freezed == deletedAt ? _self.deletedAt : deletedAt // ignore: cast_nullable_to_non_nullable as DateTime?,id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String,chatRoomId: null == chatRoomId ? _self.chatRoomId : chatRoomId // ignore: cast_nullable_to_non_nullable as int,chatRoom: freezed == chatRoom ? _self.chatRoom : chatRoom // ignore: cast_nullable_to_non_nullable as SnChat?,accountId: null == accountId ? _self.accountId : accountId // ignore: cast_nullable_to_non_nullable as int,account: null == account ? _self.account : account // ignore: cast_nullable_to_non_nullable as SnAccount,nick: freezed == nick ? _self.nick : nick // ignore: cast_nullable_to_non_nullable as String?,role: null == role ? _self.role : role // ignore: cast_nullable_to_non_nullable as int,notify: null == notify ? _self.notify : notify // ignore: cast_nullable_to_non_nullable as int,joinedAt: freezed == joinedAt ? _self.joinedAt : joinedAt // ignore: cast_nullable_to_non_nullable as DateTime?,isBot: null == isBot ? _self.isBot : isBot // ignore: cast_nullable_to_non_nullable as bool, )); } /// Create a copy of SnChatMember /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SnChatCopyWith<$Res>? get chatRoom { if (_self.chatRoom == null) { return null; } return $SnChatCopyWith<$Res>(_self.chatRoom!, (value) { return _then(_self.copyWith(chatRoom: value)); }); }/// Create a copy of SnChatMember /// 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 @JsonSerializable() class _SnChatMember implements SnChatMember { const _SnChatMember({required this.createdAt, required this.updatedAt, required this.deletedAt, required this.id, required this.chatRoomId, required this.chatRoom, required this.accountId, required this.account, required this.nick, required this.role, required this.notify, required this.joinedAt, required this.isBot}); factory _SnChatMember.fromJson(Map json) => _$SnChatMemberFromJson(json); @override final DateTime createdAt; @override final DateTime updatedAt; @override final DateTime? deletedAt; @override final String id; @override final int chatRoomId; @override final SnChat? chatRoom; @override final int accountId; @override final SnAccount account; @override final String? nick; @override final int role; @override final int notify; @override final DateTime? joinedAt; @override final bool isBot; /// Create a copy of SnChatMember /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$SnChatMemberCopyWith<_SnChatMember> get copyWith => __$SnChatMemberCopyWithImpl<_SnChatMember>(this, _$identity); @override Map toJson() { return _$SnChatMemberToJson(this, ); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _SnChatMember&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)&&(identical(other.deletedAt, deletedAt) || other.deletedAt == deletedAt)&&(identical(other.id, id) || other.id == id)&&(identical(other.chatRoomId, chatRoomId) || other.chatRoomId == chatRoomId)&&(identical(other.chatRoom, chatRoom) || other.chatRoom == chatRoom)&&(identical(other.accountId, accountId) || other.accountId == accountId)&&(identical(other.account, account) || other.account == account)&&(identical(other.nick, nick) || other.nick == nick)&&(identical(other.role, role) || other.role == role)&&(identical(other.notify, notify) || other.notify == notify)&&(identical(other.joinedAt, joinedAt) || other.joinedAt == joinedAt)&&(identical(other.isBot, isBot) || other.isBot == isBot)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,createdAt,updatedAt,deletedAt,id,chatRoomId,chatRoom,accountId,account,nick,role,notify,joinedAt,isBot); @override String toString() { return 'SnChatMember(createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt, id: $id, chatRoomId: $chatRoomId, chatRoom: $chatRoom, accountId: $accountId, account: $account, nick: $nick, role: $role, notify: $notify, joinedAt: $joinedAt, isBot: $isBot)'; } } /// @nodoc abstract mixin class _$SnChatMemberCopyWith<$Res> implements $SnChatMemberCopyWith<$Res> { factory _$SnChatMemberCopyWith(_SnChatMember value, $Res Function(_SnChatMember) _then) = __$SnChatMemberCopyWithImpl; @override @useResult $Res call({ DateTime createdAt, DateTime updatedAt, DateTime? deletedAt, String id, int chatRoomId, SnChat? chatRoom, int accountId, SnAccount account, String? nick, int role, int notify, DateTime? joinedAt, bool isBot }); @override $SnChatCopyWith<$Res>? get chatRoom;@override $SnAccountCopyWith<$Res> get account; } /// @nodoc class __$SnChatMemberCopyWithImpl<$Res> implements _$SnChatMemberCopyWith<$Res> { __$SnChatMemberCopyWithImpl(this._self, this._then); final _SnChatMember _self; final $Res Function(_SnChatMember) _then; /// Create a copy of SnChatMember /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? createdAt = null,Object? updatedAt = null,Object? deletedAt = freezed,Object? id = null,Object? chatRoomId = null,Object? chatRoom = freezed,Object? accountId = null,Object? account = null,Object? nick = freezed,Object? role = null,Object? notify = null,Object? joinedAt = freezed,Object? isBot = null,}) { return _then(_SnChatMember( createdAt: null == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime,updatedAt: null == updatedAt ? _self.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as DateTime,deletedAt: freezed == deletedAt ? _self.deletedAt : deletedAt // ignore: cast_nullable_to_non_nullable as DateTime?,id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String,chatRoomId: null == chatRoomId ? _self.chatRoomId : chatRoomId // ignore: cast_nullable_to_non_nullable as int,chatRoom: freezed == chatRoom ? _self.chatRoom : chatRoom // ignore: cast_nullable_to_non_nullable as SnChat?,accountId: null == accountId ? _self.accountId : accountId // ignore: cast_nullable_to_non_nullable as int,account: null == account ? _self.account : account // ignore: cast_nullable_to_non_nullable as SnAccount,nick: freezed == nick ? _self.nick : nick // ignore: cast_nullable_to_non_nullable as String?,role: null == role ? _self.role : role // ignore: cast_nullable_to_non_nullable as int,notify: null == notify ? _self.notify : notify // ignore: cast_nullable_to_non_nullable as int,joinedAt: freezed == joinedAt ? _self.joinedAt : joinedAt // ignore: cast_nullable_to_non_nullable as DateTime?,isBot: null == isBot ? _self.isBot : isBot // ignore: cast_nullable_to_non_nullable as bool, )); } /// Create a copy of SnChatMember /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SnChatCopyWith<$Res>? get chatRoom { if (_self.chatRoom == null) { return null; } return $SnChatCopyWith<$Res>(_self.chatRoom!, (value) { return _then(_self.copyWith(chatRoom: value)); }); }/// Create a copy of SnChatMember /// 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 _$MessageChange { String get messageId; String get action; SnChatMessage? get message; DateTime get timestamp; /// Create a copy of MessageChange /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $MessageChangeCopyWith get copyWith => _$MessageChangeCopyWithImpl(this as MessageChange, _$identity); /// Serializes this MessageChange to a JSON map. Map toJson(); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is MessageChange&&(identical(other.messageId, messageId) || other.messageId == messageId)&&(identical(other.action, action) || other.action == action)&&(identical(other.message, message) || other.message == message)&&(identical(other.timestamp, timestamp) || other.timestamp == timestamp)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,messageId,action,message,timestamp); @override String toString() { return 'MessageChange(messageId: $messageId, action: $action, message: $message, timestamp: $timestamp)'; } } /// @nodoc abstract mixin class $MessageChangeCopyWith<$Res> { factory $MessageChangeCopyWith(MessageChange value, $Res Function(MessageChange) _then) = _$MessageChangeCopyWithImpl; @useResult $Res call({ String messageId, String action, SnChatMessage? message, DateTime timestamp }); $SnChatMessageCopyWith<$Res>? get message; } /// @nodoc class _$MessageChangeCopyWithImpl<$Res> implements $MessageChangeCopyWith<$Res> { _$MessageChangeCopyWithImpl(this._self, this._then); final MessageChange _self; final $Res Function(MessageChange) _then; /// Create a copy of MessageChange /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? messageId = null,Object? action = null,Object? message = freezed,Object? timestamp = null,}) { return _then(_self.copyWith( messageId: null == messageId ? _self.messageId : messageId // ignore: cast_nullable_to_non_nullable as String,action: null == action ? _self.action : action // ignore: cast_nullable_to_non_nullable as String,message: freezed == message ? _self.message : message // ignore: cast_nullable_to_non_nullable as SnChatMessage?,timestamp: null == timestamp ? _self.timestamp : timestamp // ignore: cast_nullable_to_non_nullable as DateTime, )); } /// Create a copy of MessageChange /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SnChatMessageCopyWith<$Res>? get message { if (_self.message == null) { return null; } return $SnChatMessageCopyWith<$Res>(_self.message!, (value) { return _then(_self.copyWith(message: value)); }); } } /// @nodoc @JsonSerializable() class _MessageChange implements MessageChange { const _MessageChange({required this.messageId, required this.action, this.message, required this.timestamp}); factory _MessageChange.fromJson(Map json) => _$MessageChangeFromJson(json); @override final String messageId; @override final String action; @override final SnChatMessage? message; @override final DateTime timestamp; /// Create a copy of MessageChange /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$MessageChangeCopyWith<_MessageChange> get copyWith => __$MessageChangeCopyWithImpl<_MessageChange>(this, _$identity); @override Map toJson() { return _$MessageChangeToJson(this, ); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _MessageChange&&(identical(other.messageId, messageId) || other.messageId == messageId)&&(identical(other.action, action) || other.action == action)&&(identical(other.message, message) || other.message == message)&&(identical(other.timestamp, timestamp) || other.timestamp == timestamp)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,messageId,action,message,timestamp); @override String toString() { return 'MessageChange(messageId: $messageId, action: $action, message: $message, timestamp: $timestamp)'; } } /// @nodoc abstract mixin class _$MessageChangeCopyWith<$Res> implements $MessageChangeCopyWith<$Res> { factory _$MessageChangeCopyWith(_MessageChange value, $Res Function(_MessageChange) _then) = __$MessageChangeCopyWithImpl; @override @useResult $Res call({ String messageId, String action, SnChatMessage? message, DateTime timestamp }); @override $SnChatMessageCopyWith<$Res>? get message; } /// @nodoc class __$MessageChangeCopyWithImpl<$Res> implements _$MessageChangeCopyWith<$Res> { __$MessageChangeCopyWithImpl(this._self, this._then); final _MessageChange _self; final $Res Function(_MessageChange) _then; /// Create a copy of MessageChange /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? messageId = null,Object? action = null,Object? message = freezed,Object? timestamp = null,}) { return _then(_MessageChange( messageId: null == messageId ? _self.messageId : messageId // ignore: cast_nullable_to_non_nullable as String,action: null == action ? _self.action : action // ignore: cast_nullable_to_non_nullable as String,message: freezed == message ? _self.message : message // ignore: cast_nullable_to_non_nullable as SnChatMessage?,timestamp: null == timestamp ? _self.timestamp : timestamp // ignore: cast_nullable_to_non_nullable as DateTime, )); } /// Create a copy of MessageChange /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SnChatMessageCopyWith<$Res>? get message { if (_self.message == null) { return null; } return $SnChatMessageCopyWith<$Res>(_self.message!, (value) { return _then(_self.copyWith(message: value)); }); } } /// @nodoc mixin _$MessageSyncResponse { List get changes; DateTime get currentTimestamp; /// Create a copy of MessageSyncResponse /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $MessageSyncResponseCopyWith get copyWith => _$MessageSyncResponseCopyWithImpl(this as MessageSyncResponse, _$identity); /// Serializes this MessageSyncResponse to a JSON map. Map toJson(); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is MessageSyncResponse&&const DeepCollectionEquality().equals(other.changes, changes)&&(identical(other.currentTimestamp, currentTimestamp) || other.currentTimestamp == currentTimestamp)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(changes),currentTimestamp); @override String toString() { return 'MessageSyncResponse(changes: $changes, currentTimestamp: $currentTimestamp)'; } } /// @nodoc abstract mixin class $MessageSyncResponseCopyWith<$Res> { factory $MessageSyncResponseCopyWith(MessageSyncResponse value, $Res Function(MessageSyncResponse) _then) = _$MessageSyncResponseCopyWithImpl; @useResult $Res call({ List changes, DateTime currentTimestamp }); } /// @nodoc class _$MessageSyncResponseCopyWithImpl<$Res> implements $MessageSyncResponseCopyWith<$Res> { _$MessageSyncResponseCopyWithImpl(this._self, this._then); final MessageSyncResponse _self; final $Res Function(MessageSyncResponse) _then; /// Create a copy of MessageSyncResponse /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? changes = null,Object? currentTimestamp = null,}) { return _then(_self.copyWith( changes: null == changes ? _self.changes : changes // ignore: cast_nullable_to_non_nullable as List,currentTimestamp: null == currentTimestamp ? _self.currentTimestamp : currentTimestamp // ignore: cast_nullable_to_non_nullable as DateTime, )); } } /// @nodoc @JsonSerializable() class _MessageSyncResponse implements MessageSyncResponse { const _MessageSyncResponse({final List changes = const [], required this.currentTimestamp}): _changes = changes; factory _MessageSyncResponse.fromJson(Map json) => _$MessageSyncResponseFromJson(json); final List _changes; @override@JsonKey() List get changes { if (_changes is EqualUnmodifiableListView) return _changes; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_changes); } @override final DateTime currentTimestamp; /// Create a copy of MessageSyncResponse /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$MessageSyncResponseCopyWith<_MessageSyncResponse> get copyWith => __$MessageSyncResponseCopyWithImpl<_MessageSyncResponse>(this, _$identity); @override Map toJson() { return _$MessageSyncResponseToJson(this, ); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _MessageSyncResponse&&const DeepCollectionEquality().equals(other._changes, _changes)&&(identical(other.currentTimestamp, currentTimestamp) || other.currentTimestamp == currentTimestamp)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(_changes),currentTimestamp); @override String toString() { return 'MessageSyncResponse(changes: $changes, currentTimestamp: $currentTimestamp)'; } } /// @nodoc abstract mixin class _$MessageSyncResponseCopyWith<$Res> implements $MessageSyncResponseCopyWith<$Res> { factory _$MessageSyncResponseCopyWith(_MessageSyncResponse value, $Res Function(_MessageSyncResponse) _then) = __$MessageSyncResponseCopyWithImpl; @override @useResult $Res call({ List changes, DateTime currentTimestamp }); } /// @nodoc class __$MessageSyncResponseCopyWithImpl<$Res> implements _$MessageSyncResponseCopyWith<$Res> { __$MessageSyncResponseCopyWithImpl(this._self, this._then); final _MessageSyncResponse _self; final $Res Function(_MessageSyncResponse) _then; /// Create a copy of MessageSyncResponse /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? changes = null,Object? currentTimestamp = null,}) { return _then(_MessageSyncResponse( changes: null == changes ? _self._changes : changes // ignore: cast_nullable_to_non_nullable as List,currentTimestamp: null == currentTimestamp ? _self.currentTimestamp : currentTimestamp // ignore: cast_nullable_to_non_nullable as DateTime, )); } } // dart format on