2024-11-16 08:55:31 +00:00
// 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
// **************************************************************************
T _ $identity < T > ( T value ) = > value ;
final _privateConstructorUsedError = UnsupportedError (
' It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it. \n Please check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models ' ) ;
SnChannel _ $SnChannelFromJson ( Map < String , dynamic > json ) {
return _SnChannel . fromJson ( json ) ;
}
/// @nodoc
mixin _ $SnChannel {
2024-11-16 13:15:55 +00:00
@ HiveField ( 0 )
2024-11-16 08:55:31 +00:00
int get id = > throw _privateConstructorUsedError ;
2024-11-16 13:15:55 +00:00
@ HiveField ( 1 )
2024-11-16 08:55:31 +00:00
DateTime get createdAt = > throw _privateConstructorUsedError ;
2024-11-16 13:15:55 +00:00
@ HiveField ( 2 )
2024-11-16 08:55:31 +00:00
DateTime get updatedAt = > throw _privateConstructorUsedError ;
2024-11-16 13:15:55 +00:00
@ HiveField ( 3 )
2024-11-16 08:55:31 +00:00
dynamic get deletedAt = > throw _privateConstructorUsedError ;
2024-11-16 13:15:55 +00:00
@ HiveField ( 4 )
2024-11-16 08:55:31 +00:00
String get alias = > throw _privateConstructorUsedError ;
2024-11-16 13:15:55 +00:00
@ HiveField ( 5 )
2024-11-16 08:55:31 +00:00
String get name = > throw _privateConstructorUsedError ;
2024-11-16 13:15:55 +00:00
@ HiveField ( 6 )
2024-11-16 08:55:31 +00:00
String get description = > throw _privateConstructorUsedError ;
2024-11-16 13:15:55 +00:00
@ HiveField ( 7 )
2024-11-16 17:16:54 +00:00
List < dynamic > ? get members = > throw _privateConstructorUsedError ;
List < SnChatMessage > ? get messages = > throw _privateConstructorUsedError ;
2024-11-16 08:55:31 +00:00
dynamic get calls = > throw _privateConstructorUsedError ;
2024-11-16 13:15:55 +00:00
@ HiveField ( 8 )
2024-11-16 08:55:31 +00:00
int get type = > throw _privateConstructorUsedError ;
2024-11-16 13:15:55 +00:00
@ HiveField ( 9 )
2024-11-16 08:55:31 +00:00
int get accountId = > throw _privateConstructorUsedError ;
2024-11-16 13:15:55 +00:00
@ HiveField ( 10 )
2024-11-16 08:55:31 +00:00
SnRealm ? get realm = > throw _privateConstructorUsedError ;
2024-11-16 13:15:55 +00:00
@ HiveField ( 11 )
2024-11-16 08:55:31 +00:00
int ? get realmId = > throw _privateConstructorUsedError ;
2024-11-16 13:15:55 +00:00
@ HiveField ( 12 )
bool get isPublic = > throw _privateConstructorUsedError ;
@ HiveField ( 13 )
bool get isCommunity = > throw _privateConstructorUsedError ;
2024-11-16 08:55:31 +00:00
/// Serializes this SnChannel to a JSON map.
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
/// Create a copy of SnChannel
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$SnChannelCopyWith < SnChannel > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SnChannelCopyWith < $Res > {
factory $SnChannelCopyWith ( SnChannel value , $Res Function ( SnChannel ) then ) =
_ $SnChannelCopyWithImpl < $Res , SnChannel > ;
@ useResult
$Res call (
2024-11-16 13:15:55 +00:00
{ @ HiveField ( 0 ) int id ,
@ HiveField ( 1 ) DateTime createdAt ,
@ HiveField ( 2 ) DateTime updatedAt ,
@ HiveField ( 3 ) dynamic deletedAt ,
@ HiveField ( 4 ) String alias ,
@ HiveField ( 5 ) String name ,
@ HiveField ( 6 ) String description ,
2024-11-16 17:16:54 +00:00
@ HiveField ( 7 ) List < dynamic > ? members ,
List < SnChatMessage > ? messages ,
2024-11-16 08:55:31 +00:00
dynamic calls ,
2024-11-16 13:15:55 +00:00
@ HiveField ( 8 ) int type ,
@ HiveField ( 9 ) int accountId ,
@ HiveField ( 10 ) SnRealm ? realm ,
@ HiveField ( 11 ) int ? realmId ,
@ HiveField ( 12 ) bool isPublic ,
@ HiveField ( 13 ) bool isCommunity } ) ;
2024-11-16 08:55:31 +00:00
$SnRealmCopyWith < $Res > ? get realm ;
}
/// @nodoc
class _ $SnChannelCopyWithImpl < $Res , $Val extends SnChannel >
implements $SnChannelCopyWith < $Res > {
_ $SnChannelCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of SnChannel
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? id = null ,
Object ? createdAt = null ,
Object ? updatedAt = null ,
Object ? deletedAt = freezed ,
Object ? alias = null ,
Object ? name = null ,
Object ? description = null ,
2024-11-16 17:16:54 +00:00
Object ? members = freezed ,
2024-11-16 08:55:31 +00:00
Object ? messages = freezed ,
Object ? calls = freezed ,
Object ? type = null ,
Object ? accountId = null ,
Object ? realm = freezed ,
Object ? realmId = freezed ,
2024-11-16 13:15:55 +00:00
Object ? isPublic = null ,
Object ? isCommunity = null ,
2024-11-16 08:55:31 +00:00
} ) {
return _then ( _value . copyWith (
id: null = = id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as int ,
createdAt: null = = createdAt
? _value . createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
updatedAt: null = = updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
deletedAt: freezed = = deletedAt
? _value . deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as dynamic ,
alias: null = = alias
? _value . alias
: alias // ignore: cast_nullable_to_non_nullable
as String ,
name: null = = name
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
description: null = = description
? _value . description
: description // ignore: cast_nullable_to_non_nullable
as String ,
2024-11-16 17:16:54 +00:00
members: freezed = = members
2024-11-16 08:55:31 +00:00
? _value . members
: members // ignore: cast_nullable_to_non_nullable
2024-11-16 17:16:54 +00:00
as List < dynamic > ? ,
2024-11-16 08:55:31 +00:00
messages: freezed = = messages
? _value . messages
: messages // ignore: cast_nullable_to_non_nullable
2024-11-16 17:16:54 +00:00
as List < SnChatMessage > ? ,
2024-11-16 08:55:31 +00:00
calls: freezed = = calls
? _value . calls
: calls // ignore: cast_nullable_to_non_nullable
as dynamic ,
type: null = = type
? _value . type
: type // ignore: cast_nullable_to_non_nullable
as int ,
accountId: null = = accountId
? _value . accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int ,
realm: freezed = = realm
? _value . realm
: realm // ignore: cast_nullable_to_non_nullable
as SnRealm ? ,
realmId: freezed = = realmId
? _value . realmId
: realmId // ignore: cast_nullable_to_non_nullable
as int ? ,
2024-11-16 13:15:55 +00:00
isPublic: null = = isPublic
? _value . isPublic
: isPublic // ignore: cast_nullable_to_non_nullable
as bool ,
isCommunity: null = = isCommunity
? _value . isCommunity
: isCommunity // ignore: cast_nullable_to_non_nullable
as bool ,
2024-11-16 08:55:31 +00:00
) as $Val ) ;
}
/// Create a copy of SnChannel
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$SnRealmCopyWith < $Res > ? get realm {
if ( _value . realm = = null ) {
return null ;
}
return $SnRealmCopyWith < $Res > ( _value . realm ! , ( value ) {
return _then ( _value . copyWith ( realm: value ) as $Val ) ;
} ) ;
}
}
/// @nodoc
abstract class _ $ $SnChannelImplCopyWith < $Res >
implements $SnChannelCopyWith < $Res > {
factory _ $ $SnChannelImplCopyWith (
_ $SnChannelImpl value , $Res Function ( _ $SnChannelImpl ) then ) =
__ $ $SnChannelImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
2024-11-16 13:15:55 +00:00
{ @ HiveField ( 0 ) int id ,
@ HiveField ( 1 ) DateTime createdAt ,
@ HiveField ( 2 ) DateTime updatedAt ,
@ HiveField ( 3 ) dynamic deletedAt ,
@ HiveField ( 4 ) String alias ,
@ HiveField ( 5 ) String name ,
@ HiveField ( 6 ) String description ,
2024-11-16 17:16:54 +00:00
@ HiveField ( 7 ) List < dynamic > ? members ,
List < SnChatMessage > ? messages ,
2024-11-16 08:55:31 +00:00
dynamic calls ,
2024-11-16 13:15:55 +00:00
@ HiveField ( 8 ) int type ,
@ HiveField ( 9 ) int accountId ,
@ HiveField ( 10 ) SnRealm ? realm ,
@ HiveField ( 11 ) int ? realmId ,
@ HiveField ( 12 ) bool isPublic ,
@ HiveField ( 13 ) bool isCommunity } ) ;
2024-11-16 08:55:31 +00:00
@ override
$SnRealmCopyWith < $Res > ? get realm ;
}
/// @nodoc
class __ $ $SnChannelImplCopyWithImpl < $Res >
extends _ $SnChannelCopyWithImpl < $Res , _ $SnChannelImpl >
implements _ $ $SnChannelImplCopyWith < $Res > {
__ $ $SnChannelImplCopyWithImpl (
_ $SnChannelImpl _value , $Res Function ( _ $SnChannelImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of SnChannel
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? id = null ,
Object ? createdAt = null ,
Object ? updatedAt = null ,
Object ? deletedAt = freezed ,
Object ? alias = null ,
Object ? name = null ,
Object ? description = null ,
2024-11-16 17:16:54 +00:00
Object ? members = freezed ,
2024-11-16 08:55:31 +00:00
Object ? messages = freezed ,
Object ? calls = freezed ,
Object ? type = null ,
Object ? accountId = null ,
Object ? realm = freezed ,
Object ? realmId = freezed ,
2024-11-16 13:15:55 +00:00
Object ? isPublic = null ,
Object ? isCommunity = null ,
2024-11-16 08:55:31 +00:00
} ) {
return _then ( _ $SnChannelImpl (
id: null = = id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as int ,
createdAt: null = = createdAt
? _value . createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
updatedAt: null = = updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
deletedAt: freezed = = deletedAt
? _value . deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as dynamic ,
alias: null = = alias
? _value . alias
: alias // ignore: cast_nullable_to_non_nullable
as String ,
name: null = = name
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
description: null = = description
? _value . description
: description // ignore: cast_nullable_to_non_nullable
as String ,
2024-11-16 17:16:54 +00:00
members: freezed = = members
2024-11-16 08:55:31 +00:00
? _value . _members
: members // ignore: cast_nullable_to_non_nullable
2024-11-16 17:16:54 +00:00
as List < dynamic > ? ,
2024-11-16 08:55:31 +00:00
messages: freezed = = messages
2024-11-16 17:16:54 +00:00
? _value . _messages
2024-11-16 08:55:31 +00:00
: messages // ignore: cast_nullable_to_non_nullable
2024-11-16 17:16:54 +00:00
as List < SnChatMessage > ? ,
2024-11-16 08:55:31 +00:00
calls: freezed = = calls
? _value . calls
: calls // ignore: cast_nullable_to_non_nullable
as dynamic ,
type: null = = type
? _value . type
: type // ignore: cast_nullable_to_non_nullable
as int ,
accountId: null = = accountId
? _value . accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int ,
realm: freezed = = realm
? _value . realm
: realm // ignore: cast_nullable_to_non_nullable
as SnRealm ? ,
realmId: freezed = = realmId
? _value . realmId
: realmId // ignore: cast_nullable_to_non_nullable
as int ? ,
2024-11-16 13:15:55 +00:00
isPublic: null = = isPublic
? _value . isPublic
: isPublic // ignore: cast_nullable_to_non_nullable
as bool ,
isCommunity: null = = isCommunity
? _value . isCommunity
: isCommunity // ignore: cast_nullable_to_non_nullable
as bool ,
2024-11-16 08:55:31 +00:00
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2024-11-16 13:15:55 +00:00
@ HiveType ( typeId: 2 )
class _ $SnChannelImpl extends _SnChannel {
2024-11-16 08:55:31 +00:00
const _ $SnChannelImpl (
2024-11-16 13:15:55 +00:00
{ @ HiveField ( 0 ) required this . id ,
@ HiveField ( 1 ) required this . createdAt ,
@ HiveField ( 2 ) required this . updatedAt ,
@ HiveField ( 3 ) required this . deletedAt ,
@ HiveField ( 4 ) required this . alias ,
@ HiveField ( 5 ) required this . name ,
@ HiveField ( 6 ) required this . description ,
2024-11-16 17:16:54 +00:00
@ HiveField ( 7 ) required final List < dynamic > ? members ,
final List < SnChatMessage > ? messages ,
2024-11-16 13:15:55 +00:00
this . calls ,
@ HiveField ( 8 ) required this . type ,
@ HiveField ( 9 ) required this . accountId ,
@ HiveField ( 10 ) required this . realm ,
@ HiveField ( 11 ) required this . realmId ,
@ HiveField ( 12 ) required this . isPublic ,
@ HiveField ( 13 ) required this . isCommunity } )
: _members = members ,
2024-11-16 17:16:54 +00:00
_messages = messages ,
2024-11-16 13:15:55 +00:00
super . _ ( ) ;
2024-11-16 08:55:31 +00:00
factory _ $SnChannelImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $SnChannelImplFromJson ( json ) ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 0 )
2024-11-16 08:55:31 +00:00
final int id ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 1 )
2024-11-16 08:55:31 +00:00
final DateTime createdAt ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 2 )
2024-11-16 08:55:31 +00:00
final DateTime updatedAt ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 3 )
2024-11-16 08:55:31 +00:00
final dynamic deletedAt ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 4 )
2024-11-16 08:55:31 +00:00
final String alias ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 5 )
2024-11-16 08:55:31 +00:00
final String name ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 6 )
2024-11-16 08:55:31 +00:00
final String description ;
2024-11-16 17:16:54 +00:00
final List < dynamic > ? _members ;
2024-11-16 08:55:31 +00:00
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 7 )
2024-11-16 17:16:54 +00:00
List < dynamic > ? get members {
final value = _members ;
if ( value = = null ) return null ;
2024-11-16 08:55:31 +00:00
if ( _members is EqualUnmodifiableListView ) return _members ;
// ignore: implicit_dynamic_type
2024-11-16 17:16:54 +00:00
return EqualUnmodifiableListView ( value ) ;
2024-11-16 08:55:31 +00:00
}
2024-11-16 17:16:54 +00:00
final List < SnChatMessage > ? _messages ;
2024-11-16 08:55:31 +00:00
@ override
2024-11-16 17:16:54 +00:00
List < SnChatMessage > ? get messages {
final value = _messages ;
if ( value = = null ) return null ;
if ( _messages is EqualUnmodifiableListView ) return _messages ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( value ) ;
}
2024-11-16 08:55:31 +00:00
@ override
final dynamic calls ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 8 )
2024-11-16 08:55:31 +00:00
final int type ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 9 )
2024-11-16 08:55:31 +00:00
final int accountId ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 10 )
2024-11-16 08:55:31 +00:00
final SnRealm ? realm ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 11 )
2024-11-16 08:55:31 +00:00
final int ? realmId ;
2024-11-16 13:15:55 +00:00
@ override
@ HiveField ( 12 )
final bool isPublic ;
@ override
@ HiveField ( 13 )
final bool isCommunity ;
2024-11-16 08:55:31 +00:00
@ override
String toString ( ) {
2024-11-16 13:15:55 +00:00
return ' SnChannel(id: $ id , createdAt: $ createdAt , updatedAt: $ updatedAt , deletedAt: $ deletedAt , alias: $ alias , name: $ name , description: $ description , members: $ members , messages: $ messages , calls: $ calls , type: $ type , accountId: $ accountId , realm: $ realm , realmId: $ realmId , isPublic: $ isPublic , isCommunity: $ isCommunity ) ' ;
2024-11-16 08:55:31 +00:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $SnChannelImpl & &
( identical ( other . id , id ) | | other . id = = id ) & &
( identical ( other . createdAt , createdAt ) | |
other . createdAt = = createdAt ) & &
( identical ( other . updatedAt , updatedAt ) | |
other . updatedAt = = updatedAt ) & &
const DeepCollectionEquality ( ) . equals ( other . deletedAt , deletedAt ) & &
( identical ( other . alias , alias ) | | other . alias = = alias ) & &
( identical ( other . name , name ) | | other . name = = name ) & &
( identical ( other . description , description ) | |
other . description = = description ) & &
const DeepCollectionEquality ( ) . equals ( other . _members , _members ) & &
2024-11-16 17:16:54 +00:00
const DeepCollectionEquality ( ) . equals ( other . _messages , _messages ) & &
2024-11-16 08:55:31 +00:00
const DeepCollectionEquality ( ) . equals ( other . calls , calls ) & &
( identical ( other . type , type ) | | other . type = = type ) & &
( identical ( other . accountId , accountId ) | |
other . accountId = = accountId ) & &
2024-11-16 13:15:55 +00:00
( identical ( other . realm , realm ) | | other . realm = = realm ) & &
( identical ( other . realmId , realmId ) | | other . realmId = = realmId ) & &
2024-11-16 08:55:31 +00:00
( identical ( other . isPublic , isPublic ) | |
other . isPublic = = isPublic ) & &
( identical ( other . isCommunity , isCommunity ) | |
2024-11-16 13:15:55 +00:00
other . isCommunity = = isCommunity ) ) ;
2024-11-16 08:55:31 +00:00
}
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
int get hashCode = > Object . hash (
runtimeType ,
id ,
createdAt ,
updatedAt ,
const DeepCollectionEquality ( ) . hash ( deletedAt ) ,
alias ,
name ,
description ,
const DeepCollectionEquality ( ) . hash ( _members ) ,
2024-11-16 17:16:54 +00:00
const DeepCollectionEquality ( ) . hash ( _messages ) ,
2024-11-16 08:55:31 +00:00
const DeepCollectionEquality ( ) . hash ( calls ) ,
type ,
accountId ,
realm ,
2024-11-16 13:15:55 +00:00
realmId ,
isPublic ,
isCommunity ) ;
2024-11-16 08:55:31 +00:00
/// Create a copy of SnChannel
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $SnChannelImplCopyWith < _ $SnChannelImpl > get copyWith = >
__ $ $SnChannelImplCopyWithImpl < _ $SnChannelImpl > ( this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $SnChannelImplToJson (
this ,
) ;
}
}
2024-11-16 13:15:55 +00:00
abstract class _SnChannel extends SnChannel {
2024-11-16 08:55:31 +00:00
const factory _SnChannel (
2024-11-16 13:15:55 +00:00
{ @ HiveField ( 0 ) required final int id ,
@ HiveField ( 1 ) required final DateTime createdAt ,
@ HiveField ( 2 ) required final DateTime updatedAt ,
@ HiveField ( 3 ) required final dynamic deletedAt ,
@ HiveField ( 4 ) required final String alias ,
@ HiveField ( 5 ) required final String name ,
@ HiveField ( 6 ) required final String description ,
2024-11-16 17:16:54 +00:00
@ HiveField ( 7 ) required final List < dynamic > ? members ,
final List < SnChatMessage > ? messages ,
2024-11-16 13:15:55 +00:00
final dynamic calls ,
@ HiveField ( 8 ) required final int type ,
@ HiveField ( 9 ) required final int accountId ,
@ HiveField ( 10 ) required final SnRealm ? realm ,
@ HiveField ( 11 ) required final int ? realmId ,
@ HiveField ( 12 ) required final bool isPublic ,
@ HiveField ( 13 ) required final bool isCommunity } ) = _ $SnChannelImpl ;
const _SnChannel . _ ( ) : super . _ ( ) ;
2024-11-16 08:55:31 +00:00
factory _SnChannel . fromJson ( Map < String , dynamic > json ) =
_ $SnChannelImpl . fromJson ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 0 )
2024-11-16 08:55:31 +00:00
int get id ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 1 )
2024-11-16 08:55:31 +00:00
DateTime get createdAt ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 2 )
2024-11-16 08:55:31 +00:00
DateTime get updatedAt ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 3 )
2024-11-16 08:55:31 +00:00
dynamic get deletedAt ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 4 )
2024-11-16 08:55:31 +00:00
String get alias ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 5 )
2024-11-16 08:55:31 +00:00
String get name ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 6 )
2024-11-16 08:55:31 +00:00
String get description ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 7 )
2024-11-16 17:16:54 +00:00
List < dynamic > ? get members ;
2024-11-16 08:55:31 +00:00
@ override
2024-11-16 17:16:54 +00:00
List < SnChatMessage > ? get messages ;
2024-11-16 08:55:31 +00:00
@ override
dynamic get calls ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 8 )
2024-11-16 08:55:31 +00:00
int get type ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 9 )
2024-11-16 08:55:31 +00:00
int get accountId ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 10 )
2024-11-16 08:55:31 +00:00
SnRealm ? get realm ;
@ override
2024-11-16 13:15:55 +00:00
@ HiveField ( 11 )
2024-11-16 08:55:31 +00:00
int ? get realmId ;
2024-11-16 13:15:55 +00:00
@ override
@ HiveField ( 12 )
bool get isPublic ;
@ override
@ HiveField ( 13 )
bool get isCommunity ;
2024-11-16 08:55:31 +00:00
/// Create a copy of SnChannel
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $SnChannelImplCopyWith < _ $SnChannelImpl > get copyWith = >
throw _privateConstructorUsedError ;
}
2024-11-16 17:16:54 +00:00
SnChannelMember _ $SnChannelMemberFromJson ( Map < String , dynamic > json ) {
return _SnChannelMember . fromJson ( json ) ;
}
/// @nodoc
mixin _ $SnChannelMember {
@ HiveField ( 0 )
int get id = > throw _privateConstructorUsedError ;
@ HiveField ( 1 )
DateTime get createdAt = > throw _privateConstructorUsedError ;
@ HiveField ( 2 )
DateTime get updatedAt = > throw _privateConstructorUsedError ;
@ HiveField ( 3 )
DateTime ? get deletedAt = > throw _privateConstructorUsedError ;
@ HiveField ( 4 )
int get channelId = > throw _privateConstructorUsedError ;
@ HiveField ( 5 )
int get accountId = > throw _privateConstructorUsedError ;
@ HiveField ( 6 )
String ? get nick = > throw _privateConstructorUsedError ;
@ HiveField ( 7 )
SnChannel ? get channel = > throw _privateConstructorUsedError ;
@ HiveField ( 8 )
SnAccount ? get account = > throw _privateConstructorUsedError ;
int get notify = > throw _privateConstructorUsedError ;
@ HiveField ( 9 )
int get powerLevel = > throw _privateConstructorUsedError ;
dynamic get calls = > throw _privateConstructorUsedError ;
dynamic get events = > throw _privateConstructorUsedError ;
/// Serializes this SnChannelMember to a JSON map.
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
/// Create a copy of SnChannelMember
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$SnChannelMemberCopyWith < SnChannelMember > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SnChannelMemberCopyWith < $Res > {
factory $SnChannelMemberCopyWith (
SnChannelMember value , $Res Function ( SnChannelMember ) then ) =
_ $SnChannelMemberCopyWithImpl < $Res , SnChannelMember > ;
@ useResult
$Res call (
{ @ HiveField ( 0 ) int id ,
@ HiveField ( 1 ) DateTime createdAt ,
@ HiveField ( 2 ) DateTime updatedAt ,
@ HiveField ( 3 ) DateTime ? deletedAt ,
@ HiveField ( 4 ) int channelId ,
@ HiveField ( 5 ) int accountId ,
@ HiveField ( 6 ) String ? nick ,
@ HiveField ( 7 ) SnChannel ? channel ,
@ HiveField ( 8 ) SnAccount ? account ,
int notify ,
@ HiveField ( 9 ) int powerLevel ,
dynamic calls ,
dynamic events } ) ;
$SnChannelCopyWith < $Res > ? get channel ;
$SnAccountCopyWith < $Res > ? get account ;
}
/// @nodoc
class _ $SnChannelMemberCopyWithImpl < $Res , $Val extends SnChannelMember >
implements $SnChannelMemberCopyWith < $Res > {
_ $SnChannelMemberCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of SnChannelMember
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? id = null ,
Object ? createdAt = null ,
Object ? updatedAt = null ,
Object ? deletedAt = freezed ,
Object ? channelId = null ,
Object ? accountId = null ,
Object ? nick = freezed ,
Object ? channel = freezed ,
Object ? account = freezed ,
Object ? notify = null ,
Object ? powerLevel = null ,
Object ? calls = freezed ,
Object ? events = freezed ,
} ) {
return _then ( _value . copyWith (
id: null = = id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as int ,
createdAt: null = = createdAt
? _value . createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
updatedAt: null = = updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
deletedAt: freezed = = deletedAt
? _value . deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
channelId: null = = channelId
? _value . channelId
: channelId // ignore: cast_nullable_to_non_nullable
as int ,
accountId: null = = accountId
? _value . accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int ,
nick: freezed = = nick
? _value . nick
: nick // ignore: cast_nullable_to_non_nullable
as String ? ,
channel: freezed = = channel
? _value . channel
: channel // ignore: cast_nullable_to_non_nullable
as SnChannel ? ,
account: freezed = = account
? _value . account
: account // ignore: cast_nullable_to_non_nullable
as SnAccount ? ,
notify: null = = notify
? _value . notify
: notify // ignore: cast_nullable_to_non_nullable
as int ,
powerLevel: null = = powerLevel
? _value . powerLevel
: powerLevel // ignore: cast_nullable_to_non_nullable
as int ,
calls: freezed = = calls
? _value . calls
: calls // ignore: cast_nullable_to_non_nullable
as dynamic ,
events: freezed = = events
? _value . events
: events // ignore: cast_nullable_to_non_nullable
as dynamic ,
) as $Val ) ;
}
/// Create a copy of SnChannelMember
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$SnChannelCopyWith < $Res > ? get channel {
if ( _value . channel = = null ) {
return null ;
}
return $SnChannelCopyWith < $Res > ( _value . channel ! , ( value ) {
return _then ( _value . copyWith ( channel: value ) as $Val ) ;
} ) ;
}
/// Create a copy of SnChannelMember
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$SnAccountCopyWith < $Res > ? get account {
if ( _value . account = = null ) {
return null ;
}
return $SnAccountCopyWith < $Res > ( _value . account ! , ( value ) {
return _then ( _value . copyWith ( account: value ) as $Val ) ;
} ) ;
}
}
/// @nodoc
abstract class _ $ $SnChannelMemberImplCopyWith < $Res >
implements $SnChannelMemberCopyWith < $Res > {
factory _ $ $SnChannelMemberImplCopyWith ( _ $SnChannelMemberImpl value ,
$Res Function ( _ $SnChannelMemberImpl ) then ) =
__ $ $SnChannelMemberImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ @ HiveField ( 0 ) int id ,
@ HiveField ( 1 ) DateTime createdAt ,
@ HiveField ( 2 ) DateTime updatedAt ,
@ HiveField ( 3 ) DateTime ? deletedAt ,
@ HiveField ( 4 ) int channelId ,
@ HiveField ( 5 ) int accountId ,
@ HiveField ( 6 ) String ? nick ,
@ HiveField ( 7 ) SnChannel ? channel ,
@ HiveField ( 8 ) SnAccount ? account ,
int notify ,
@ HiveField ( 9 ) int powerLevel ,
dynamic calls ,
dynamic events } ) ;
@ override
$SnChannelCopyWith < $Res > ? get channel ;
@ override
$SnAccountCopyWith < $Res > ? get account ;
}
/// @nodoc
class __ $ $SnChannelMemberImplCopyWithImpl < $Res >
extends _ $SnChannelMemberCopyWithImpl < $Res , _ $SnChannelMemberImpl >
implements _ $ $SnChannelMemberImplCopyWith < $Res > {
__ $ $SnChannelMemberImplCopyWithImpl (
_ $SnChannelMemberImpl _value , $Res Function ( _ $SnChannelMemberImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of SnChannelMember
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? id = null ,
Object ? createdAt = null ,
Object ? updatedAt = null ,
Object ? deletedAt = freezed ,
Object ? channelId = null ,
Object ? accountId = null ,
Object ? nick = freezed ,
Object ? channel = freezed ,
Object ? account = freezed ,
Object ? notify = null ,
Object ? powerLevel = null ,
Object ? calls = freezed ,
Object ? events = freezed ,
} ) {
return _then ( _ $SnChannelMemberImpl (
id: null = = id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as int ,
createdAt: null = = createdAt
? _value . createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
updatedAt: null = = updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
deletedAt: freezed = = deletedAt
? _value . deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
channelId: null = = channelId
? _value . channelId
: channelId // ignore: cast_nullable_to_non_nullable
as int ,
accountId: null = = accountId
? _value . accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int ,
nick: freezed = = nick
? _value . nick
: nick // ignore: cast_nullable_to_non_nullable
as String ? ,
channel: freezed = = channel
? _value . channel
: channel // ignore: cast_nullable_to_non_nullable
as SnChannel ? ,
account: freezed = = account
? _value . account
: account // ignore: cast_nullable_to_non_nullable
as SnAccount ? ,
notify: null = = notify
? _value . notify
: notify // ignore: cast_nullable_to_non_nullable
as int ,
powerLevel: null = = powerLevel
? _value . powerLevel
: powerLevel // ignore: cast_nullable_to_non_nullable
as int ,
calls: freezed = = calls
? _value . calls
: calls // ignore: cast_nullable_to_non_nullable
as dynamic ,
events: freezed = = events
? _value . events
: events // ignore: cast_nullable_to_non_nullable
as dynamic ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
@ HiveType ( typeId: 3 )
class _ $SnChannelMemberImpl extends _SnChannelMember {
const _ $SnChannelMemberImpl (
{ @ HiveField ( 0 ) required this . id ,
@ HiveField ( 1 ) required this . createdAt ,
@ HiveField ( 2 ) required this . updatedAt ,
@ HiveField ( 3 ) required this . deletedAt ,
@ HiveField ( 4 ) required this . channelId ,
@ HiveField ( 5 ) required this . accountId ,
@ HiveField ( 6 ) required this . nick ,
@ HiveField ( 7 ) required this . channel ,
@ HiveField ( 8 ) required this . account ,
this . notify = 0 ,
@ HiveField ( 9 ) required this . powerLevel ,
this . calls ,
this . events } )
: super . _ ( ) ;
factory _ $SnChannelMemberImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $SnChannelMemberImplFromJson ( json ) ;
@ override
@ HiveField ( 0 )
final int id ;
@ override
@ HiveField ( 1 )
final DateTime createdAt ;
@ override
@ HiveField ( 2 )
final DateTime updatedAt ;
@ override
@ HiveField ( 3 )
final DateTime ? deletedAt ;
@ override
@ HiveField ( 4 )
final int channelId ;
@ override
@ HiveField ( 5 )
final int accountId ;
@ override
@ HiveField ( 6 )
final String ? nick ;
@ override
@ HiveField ( 7 )
final SnChannel ? channel ;
@ override
@ HiveField ( 8 )
final SnAccount ? account ;
@ override
@ JsonKey ( )
final int notify ;
@ override
@ HiveField ( 9 )
final int powerLevel ;
@ override
final dynamic calls ;
@ override
final dynamic events ;
@ override
String toString ( ) {
return ' SnChannelMember(id: $ id , createdAt: $ createdAt , updatedAt: $ updatedAt , deletedAt: $ deletedAt , channelId: $ channelId , accountId: $ accountId , nick: $ nick , channel: $ channel , account: $ account , notify: $ notify , powerLevel: $ powerLevel , calls: $ calls , events: $ events ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $SnChannelMemberImpl & &
( identical ( other . id , id ) | | other . id = = id ) & &
( identical ( other . createdAt , createdAt ) | |
other . createdAt = = createdAt ) & &
( identical ( other . updatedAt , updatedAt ) | |
other . updatedAt = = updatedAt ) & &
( identical ( other . deletedAt , deletedAt ) | |
other . deletedAt = = deletedAt ) & &
( identical ( other . channelId , channelId ) | |
other . channelId = = channelId ) & &
( identical ( other . accountId , accountId ) | |
other . accountId = = accountId ) & &
( identical ( other . nick , nick ) | | other . nick = = nick ) & &
( identical ( other . channel , channel ) | | other . channel = = channel ) & &
( identical ( other . account , account ) | | other . account = = account ) & &
( identical ( other . notify , notify ) | | other . notify = = notify ) & &
( identical ( other . powerLevel , powerLevel ) | |
other . powerLevel = = powerLevel ) & &
const DeepCollectionEquality ( ) . equals ( other . calls , calls ) & &
const DeepCollectionEquality ( ) . equals ( other . events , events ) ) ;
}
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
int get hashCode = > Object . hash (
runtimeType ,
id ,
createdAt ,
updatedAt ,
deletedAt ,
channelId ,
accountId ,
nick ,
channel ,
account ,
notify ,
powerLevel ,
const DeepCollectionEquality ( ) . hash ( calls ) ,
const DeepCollectionEquality ( ) . hash ( events ) ) ;
/// Create a copy of SnChannelMember
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $SnChannelMemberImplCopyWith < _ $SnChannelMemberImpl > get copyWith = >
__ $ $SnChannelMemberImplCopyWithImpl < _ $SnChannelMemberImpl > (
this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $SnChannelMemberImplToJson (
this ,
) ;
}
}
abstract class _SnChannelMember extends SnChannelMember {
const factory _SnChannelMember (
{ @ HiveField ( 0 ) required final int id ,
@ HiveField ( 1 ) required final DateTime createdAt ,
@ HiveField ( 2 ) required final DateTime updatedAt ,
@ HiveField ( 3 ) required final DateTime ? deletedAt ,
@ HiveField ( 4 ) required final int channelId ,
@ HiveField ( 5 ) required final int accountId ,
@ HiveField ( 6 ) required final String ? nick ,
@ HiveField ( 7 ) required final SnChannel ? channel ,
@ HiveField ( 8 ) required final SnAccount ? account ,
final int notify ,
@ HiveField ( 9 ) required final int powerLevel ,
final dynamic calls ,
final dynamic events } ) = _ $SnChannelMemberImpl ;
const _SnChannelMember . _ ( ) : super . _ ( ) ;
factory _SnChannelMember . fromJson ( Map < String , dynamic > json ) =
_ $SnChannelMemberImpl . fromJson ;
@ override
@ HiveField ( 0 )
int get id ;
@ override
@ HiveField ( 1 )
DateTime get createdAt ;
@ override
@ HiveField ( 2 )
DateTime get updatedAt ;
@ override
@ HiveField ( 3 )
DateTime ? get deletedAt ;
@ override
@ HiveField ( 4 )
int get channelId ;
@ override
@ HiveField ( 5 )
int get accountId ;
@ override
@ HiveField ( 6 )
String ? get nick ;
@ override
@ HiveField ( 7 )
SnChannel ? get channel ;
@ override
@ HiveField ( 8 )
SnAccount ? get account ;
@ override
int get notify ;
@ override
@ HiveField ( 9 )
int get powerLevel ;
@ override
dynamic get calls ;
@ override
dynamic get events ;
/// Create a copy of SnChannelMember
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $SnChannelMemberImplCopyWith < _ $SnChannelMemberImpl > get copyWith = >
throw _privateConstructorUsedError ;
}
SnChatMessage _ $SnChatMessageFromJson ( Map < String , dynamic > json ) {
return _SnChatMessage . fromJson ( json ) ;
}
/// @nodoc
mixin _ $SnChatMessage {
@ HiveField ( 0 )
int get id = > throw _privateConstructorUsedError ;
@ HiveField ( 1 )
DateTime get createdAt = > throw _privateConstructorUsedError ;
@ HiveField ( 2 )
DateTime get updatedAt = > throw _privateConstructorUsedError ;
@ HiveField ( 3 )
DateTime ? get deletedAt = > throw _privateConstructorUsedError ;
@ HiveField ( 4 )
String get uuid = > throw _privateConstructorUsedError ;
@ HiveField ( 5 )
Map < String , dynamic > get body = > throw _privateConstructorUsedError ;
@ HiveField ( 6 )
String get type = > throw _privateConstructorUsedError ;
@ HiveField ( 7 )
SnChannel get channel = > throw _privateConstructorUsedError ;
@ HiveField ( 8 )
SnChannelMember get sender = > throw _privateConstructorUsedError ;
@ HiveField ( 9 )
int get channelId = > throw _privateConstructorUsedError ;
@ HiveField ( 10 )
int get senderId = > throw _privateConstructorUsedError ;
/// Serializes this SnChatMessage to a JSON map.
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
/// Create a copy of SnChatMessage
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$SnChatMessageCopyWith < SnChatMessage > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SnChatMessageCopyWith < $Res > {
factory $SnChatMessageCopyWith (
SnChatMessage value , $Res Function ( SnChatMessage ) then ) =
_ $SnChatMessageCopyWithImpl < $Res , SnChatMessage > ;
@ useResult
$Res call (
{ @ HiveField ( 0 ) int id ,
@ HiveField ( 1 ) DateTime createdAt ,
@ HiveField ( 2 ) DateTime updatedAt ,
@ HiveField ( 3 ) DateTime ? deletedAt ,
@ HiveField ( 4 ) String uuid ,
@ HiveField ( 5 ) Map < String , dynamic > body ,
@ HiveField ( 6 ) String type ,
@ HiveField ( 7 ) SnChannel channel ,
@ HiveField ( 8 ) SnChannelMember sender ,
@ HiveField ( 9 ) int channelId ,
@ HiveField ( 10 ) int senderId } ) ;
$SnChannelCopyWith < $Res > get channel ;
$SnChannelMemberCopyWith < $Res > get sender ;
}
/// @nodoc
class _ $SnChatMessageCopyWithImpl < $Res , $Val extends SnChatMessage >
implements $SnChatMessageCopyWith < $Res > {
_ $SnChatMessageCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _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 ? id = null ,
Object ? createdAt = null ,
Object ? updatedAt = null ,
Object ? deletedAt = freezed ,
Object ? uuid = null ,
Object ? body = null ,
Object ? type = null ,
Object ? channel = null ,
Object ? sender = null ,
Object ? channelId = null ,
Object ? senderId = null ,
} ) {
return _then ( _value . copyWith (
id: null = = id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as int ,
createdAt: null = = createdAt
? _value . createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
updatedAt: null = = updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
deletedAt: freezed = = deletedAt
? _value . deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
uuid: null = = uuid
? _value . uuid
: uuid // ignore: cast_nullable_to_non_nullable
as String ,
body: null = = body
? _value . body
: body // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
type: null = = type
? _value . type
: type // ignore: cast_nullable_to_non_nullable
as String ,
channel: null = = channel
? _value . channel
: channel // ignore: cast_nullable_to_non_nullable
as SnChannel ,
sender: null = = sender
? _value . sender
: sender // ignore: cast_nullable_to_non_nullable
as SnChannelMember ,
channelId: null = = channelId
? _value . channelId
: channelId // ignore: cast_nullable_to_non_nullable
as int ,
senderId: null = = senderId
? _value . senderId
: senderId // ignore: cast_nullable_to_non_nullable
as int ,
) as $Val ) ;
}
/// Create a copy of SnChatMessage
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$SnChannelCopyWith < $Res > get channel {
return $SnChannelCopyWith < $Res > ( _value . channel , ( value ) {
return _then ( _value . copyWith ( channel: value ) as $Val ) ;
} ) ;
}
/// Create a copy of SnChatMessage
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$SnChannelMemberCopyWith < $Res > get sender {
return $SnChannelMemberCopyWith < $Res > ( _value . sender , ( value ) {
return _then ( _value . copyWith ( sender: value ) as $Val ) ;
} ) ;
}
}
/// @nodoc
abstract class _ $ $SnChatMessageImplCopyWith < $Res >
implements $SnChatMessageCopyWith < $Res > {
factory _ $ $SnChatMessageImplCopyWith (
_ $SnChatMessageImpl value , $Res Function ( _ $SnChatMessageImpl ) then ) =
__ $ $SnChatMessageImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ @ HiveField ( 0 ) int id ,
@ HiveField ( 1 ) DateTime createdAt ,
@ HiveField ( 2 ) DateTime updatedAt ,
@ HiveField ( 3 ) DateTime ? deletedAt ,
@ HiveField ( 4 ) String uuid ,
@ HiveField ( 5 ) Map < String , dynamic > body ,
@ HiveField ( 6 ) String type ,
@ HiveField ( 7 ) SnChannel channel ,
@ HiveField ( 8 ) SnChannelMember sender ,
@ HiveField ( 9 ) int channelId ,
@ HiveField ( 10 ) int senderId } ) ;
@ override
$SnChannelCopyWith < $Res > get channel ;
@ override
$SnChannelMemberCopyWith < $Res > get sender ;
}
/// @nodoc
class __ $ $SnChatMessageImplCopyWithImpl < $Res >
extends _ $SnChatMessageCopyWithImpl < $Res , _ $SnChatMessageImpl >
implements _ $ $SnChatMessageImplCopyWith < $Res > {
__ $ $SnChatMessageImplCopyWithImpl (
_ $SnChatMessageImpl _value , $Res Function ( _ $SnChatMessageImpl ) _then )
: super ( _value , _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 ? id = null ,
Object ? createdAt = null ,
Object ? updatedAt = null ,
Object ? deletedAt = freezed ,
Object ? uuid = null ,
Object ? body = null ,
Object ? type = null ,
Object ? channel = null ,
Object ? sender = null ,
Object ? channelId = null ,
Object ? senderId = null ,
} ) {
return _then ( _ $SnChatMessageImpl (
id: null = = id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as int ,
createdAt: null = = createdAt
? _value . createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
updatedAt: null = = updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
deletedAt: freezed = = deletedAt
? _value . deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
uuid: null = = uuid
? _value . uuid
: uuid // ignore: cast_nullable_to_non_nullable
as String ,
body: null = = body
? _value . _body
: body // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
type: null = = type
? _value . type
: type // ignore: cast_nullable_to_non_nullable
as String ,
channel: null = = channel
? _value . channel
: channel // ignore: cast_nullable_to_non_nullable
as SnChannel ,
sender: null = = sender
? _value . sender
: sender // ignore: cast_nullable_to_non_nullable
as SnChannelMember ,
channelId: null = = channelId
? _value . channelId
: channelId // ignore: cast_nullable_to_non_nullable
as int ,
senderId: null = = senderId
? _value . senderId
: senderId // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
@ HiveType ( typeId: 4 )
class _ $SnChatMessageImpl extends _SnChatMessage {
const _ $SnChatMessageImpl (
{ @ HiveField ( 0 ) required this . id ,
@ HiveField ( 1 ) required this . createdAt ,
@ HiveField ( 2 ) required this . updatedAt ,
@ HiveField ( 3 ) required this . deletedAt ,
@ HiveField ( 4 ) required this . uuid ,
@ HiveField ( 5 ) required final Map < String , dynamic > body ,
@ HiveField ( 6 ) required this . type ,
@ HiveField ( 7 ) required this . channel ,
@ HiveField ( 8 ) required this . sender ,
@ HiveField ( 9 ) required this . channelId ,
@ HiveField ( 10 ) required this . senderId } )
: _body = body ,
super . _ ( ) ;
factory _ $SnChatMessageImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $SnChatMessageImplFromJson ( json ) ;
@ override
@ HiveField ( 0 )
final int id ;
@ override
@ HiveField ( 1 )
final DateTime createdAt ;
@ override
@ HiveField ( 2 )
final DateTime updatedAt ;
@ override
@ HiveField ( 3 )
final DateTime ? deletedAt ;
@ override
@ HiveField ( 4 )
final String uuid ;
final Map < String , dynamic > _body ;
@ override
@ HiveField ( 5 )
Map < String , dynamic > get body {
if ( _body is EqualUnmodifiableMapView ) return _body ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView ( _body ) ;
}
@ override
@ HiveField ( 6 )
final String type ;
@ override
@ HiveField ( 7 )
final SnChannel channel ;
@ override
@ HiveField ( 8 )
final SnChannelMember sender ;
@ override
@ HiveField ( 9 )
final int channelId ;
@ override
@ HiveField ( 10 )
final int senderId ;
@ override
String toString ( ) {
return ' SnChatMessage(id: $ id , createdAt: $ createdAt , updatedAt: $ updatedAt , deletedAt: $ deletedAt , uuid: $ uuid , body: $ body , type: $ type , channel: $ channel , sender: $ sender , channelId: $ channelId , senderId: $ senderId ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $SnChatMessageImpl & &
( identical ( other . id , id ) | | other . id = = id ) & &
( identical ( other . createdAt , createdAt ) | |
other . createdAt = = createdAt ) & &
( identical ( other . updatedAt , updatedAt ) | |
other . updatedAt = = updatedAt ) & &
( identical ( other . deletedAt , deletedAt ) | |
other . deletedAt = = deletedAt ) & &
( identical ( other . uuid , uuid ) | | other . uuid = = uuid ) & &
const DeepCollectionEquality ( ) . equals ( other . _body , _body ) & &
( identical ( other . type , type ) | | other . type = = type ) & &
( identical ( other . channel , channel ) | | other . channel = = channel ) & &
( identical ( other . sender , sender ) | | other . sender = = sender ) & &
( identical ( other . channelId , channelId ) | |
other . channelId = = channelId ) & &
( identical ( other . senderId , senderId ) | |
other . senderId = = senderId ) ) ;
}
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
int get hashCode = > Object . hash (
runtimeType ,
id ,
createdAt ,
updatedAt ,
deletedAt ,
uuid ,
const DeepCollectionEquality ( ) . hash ( _body ) ,
type ,
channel ,
sender ,
channelId ,
senderId ) ;
/// Create a copy of SnChatMessage
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $SnChatMessageImplCopyWith < _ $SnChatMessageImpl > get copyWith = >
__ $ $SnChatMessageImplCopyWithImpl < _ $SnChatMessageImpl > ( this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $SnChatMessageImplToJson (
this ,
) ;
}
}
abstract class _SnChatMessage extends SnChatMessage {
const factory _SnChatMessage (
{ @ HiveField ( 0 ) required final int id ,
@ HiveField ( 1 ) required final DateTime createdAt ,
@ HiveField ( 2 ) required final DateTime updatedAt ,
@ HiveField ( 3 ) required final DateTime ? deletedAt ,
@ HiveField ( 4 ) required final String uuid ,
@ HiveField ( 5 ) required final Map < String , dynamic > body ,
@ HiveField ( 6 ) required final String type ,
@ HiveField ( 7 ) required final SnChannel channel ,
@ HiveField ( 8 ) required final SnChannelMember sender ,
@ HiveField ( 9 ) required final int channelId ,
@ HiveField ( 10 ) required final int senderId } ) = _ $SnChatMessageImpl ;
const _SnChatMessage . _ ( ) : super . _ ( ) ;
factory _SnChatMessage . fromJson ( Map < String , dynamic > json ) =
_ $SnChatMessageImpl . fromJson ;
@ override
@ HiveField ( 0 )
int get id ;
@ override
@ HiveField ( 1 )
DateTime get createdAt ;
@ override
@ HiveField ( 2 )
DateTime get updatedAt ;
@ override
@ HiveField ( 3 )
DateTime ? get deletedAt ;
@ override
@ HiveField ( 4 )
String get uuid ;
@ override
@ HiveField ( 5 )
Map < String , dynamic > get body ;
@ override
@ HiveField ( 6 )
String get type ;
@ override
@ HiveField ( 7 )
SnChannel get channel ;
@ override
@ HiveField ( 8 )
SnChannelMember get sender ;
@ override
@ HiveField ( 9 )
int get channelId ;
@ override
@ HiveField ( 10 )
int get senderId ;
/// Create a copy of SnChatMessage
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $SnChatMessageImplCopyWith < _ $SnChatMessageImpl > get copyWith = >
throw _privateConstructorUsedError ;
}