2024-11-16 05:54:36 +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 ' realm.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 ' ) ;
SnRealmMember _ $SnRealmMemberFromJson ( Map < String , dynamic > json ) {
return _SnRealmMember . fromJson ( json ) ;
}
/// @nodoc
mixin _ $SnRealmMember {
int get id = > throw _privateConstructorUsedError ;
DateTime get createdAt = > throw _privateConstructorUsedError ;
DateTime get updatedAt = > throw _privateConstructorUsedError ;
DateTime ? get deletedAt = > throw _privateConstructorUsedError ;
int get realmId = > throw _privateConstructorUsedError ;
int get accountId = > throw _privateConstructorUsedError ;
SnRealm get realm = > throw _privateConstructorUsedError ;
SnAccount get account = > throw _privateConstructorUsedError ;
int get powerLevel = > throw _privateConstructorUsedError ;
/// Serializes this SnRealmMember to a JSON map.
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
/// Create a copy of SnRealmMember
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$SnRealmMemberCopyWith < SnRealmMember > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SnRealmMemberCopyWith < $Res > {
factory $SnRealmMemberCopyWith (
SnRealmMember value , $Res Function ( SnRealmMember ) then ) =
_ $SnRealmMemberCopyWithImpl < $Res , SnRealmMember > ;
@ useResult
$Res call (
{ int id ,
DateTime createdAt ,
DateTime updatedAt ,
DateTime ? deletedAt ,
int realmId ,
int accountId ,
SnRealm realm ,
SnAccount account ,
int powerLevel } ) ;
$SnRealmCopyWith < $Res > get realm ;
$SnAccountCopyWith < $Res > get account ;
}
/// @nodoc
class _ $SnRealmMemberCopyWithImpl < $Res , $Val extends SnRealmMember >
implements $SnRealmMemberCopyWith < $Res > {
_ $SnRealmMemberCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of SnRealmMember
/// 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 ? realmId = null ,
Object ? accountId = null ,
Object ? realm = null ,
Object ? account = null ,
Object ? powerLevel = 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 ? ,
realmId: null = = realmId
? _value . realmId
: realmId // ignore: cast_nullable_to_non_nullable
as int ,
accountId: null = = accountId
? _value . accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int ,
realm: null = = realm
? _value . realm
: realm // ignore: cast_nullable_to_non_nullable
as SnRealm ,
account: null = = account
? _value . account
: account // ignore: cast_nullable_to_non_nullable
as SnAccount ,
powerLevel: null = = powerLevel
? _value . powerLevel
: powerLevel // ignore: cast_nullable_to_non_nullable
as int ,
) as $Val ) ;
}
/// Create a copy of SnRealmMember
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$SnRealmCopyWith < $Res > get realm {
return $SnRealmCopyWith < $Res > ( _value . realm , ( value ) {
return _then ( _value . copyWith ( realm: value ) as $Val ) ;
} ) ;
}
/// Create a copy of SnRealmMember
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$SnAccountCopyWith < $Res > get account {
return $SnAccountCopyWith < $Res > ( _value . account , ( value ) {
return _then ( _value . copyWith ( account: value ) as $Val ) ;
} ) ;
}
}
/// @nodoc
abstract class _ $ $SnRealmMemberImplCopyWith < $Res >
implements $SnRealmMemberCopyWith < $Res > {
factory _ $ $SnRealmMemberImplCopyWith (
_ $SnRealmMemberImpl value , $Res Function ( _ $SnRealmMemberImpl ) then ) =
__ $ $SnRealmMemberImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ int id ,
DateTime createdAt ,
DateTime updatedAt ,
DateTime ? deletedAt ,
int realmId ,
int accountId ,
SnRealm realm ,
SnAccount account ,
int powerLevel } ) ;
@ override
$SnRealmCopyWith < $Res > get realm ;
@ override
$SnAccountCopyWith < $Res > get account ;
}
/// @nodoc
class __ $ $SnRealmMemberImplCopyWithImpl < $Res >
extends _ $SnRealmMemberCopyWithImpl < $Res , _ $SnRealmMemberImpl >
implements _ $ $SnRealmMemberImplCopyWith < $Res > {
__ $ $SnRealmMemberImplCopyWithImpl (
_ $SnRealmMemberImpl _value , $Res Function ( _ $SnRealmMemberImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of SnRealmMember
/// 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 ? realmId = null ,
Object ? accountId = null ,
Object ? realm = null ,
Object ? account = null ,
Object ? powerLevel = null ,
} ) {
return _then ( _ $SnRealmMemberImpl (
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 ? ,
realmId: null = = realmId
? _value . realmId
: realmId // ignore: cast_nullable_to_non_nullable
as int ,
accountId: null = = accountId
? _value . accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int ,
realm: null = = realm
? _value . realm
: realm // ignore: cast_nullable_to_non_nullable
as SnRealm ,
account: null = = account
? _value . account
: account // ignore: cast_nullable_to_non_nullable
as SnAccount ,
powerLevel: null = = powerLevel
? _value . powerLevel
: powerLevel // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $SnRealmMemberImpl implements _SnRealmMember {
const _ $SnRealmMemberImpl (
{ required this . id ,
required this . createdAt ,
required this . updatedAt ,
required this . deletedAt ,
required this . realmId ,
required this . accountId ,
required this . realm ,
required this . account ,
required this . powerLevel } ) ;
factory _ $SnRealmMemberImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $SnRealmMemberImplFromJson ( json ) ;
@ override
final int id ;
@ override
final DateTime createdAt ;
@ override
final DateTime updatedAt ;
@ override
final DateTime ? deletedAt ;
@ override
final int realmId ;
@ override
final int accountId ;
@ override
final SnRealm realm ;
@ override
final SnAccount account ;
@ override
final int powerLevel ;
@ override
String toString ( ) {
return ' SnRealmMember(id: $ id , createdAt: $ createdAt , updatedAt: $ updatedAt , deletedAt: $ deletedAt , realmId: $ realmId , accountId: $ accountId , realm: $ realm , account: $ account , powerLevel: $ powerLevel ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $SnRealmMemberImpl & &
( 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 . realmId , realmId ) | | other . realmId = = realmId ) & &
( identical ( other . accountId , accountId ) | |
other . accountId = = accountId ) & &
( identical ( other . realm , realm ) | | other . realm = = realm ) & &
( identical ( other . account , account ) | | other . account = = account ) & &
( identical ( other . powerLevel , powerLevel ) | |
other . powerLevel = = powerLevel ) ) ;
}
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
int get hashCode = > Object . hash ( runtimeType , id , createdAt , updatedAt ,
deletedAt , realmId , accountId , realm , account , powerLevel ) ;
/// Create a copy of SnRealmMember
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $SnRealmMemberImplCopyWith < _ $SnRealmMemberImpl > get copyWith = >
__ $ $SnRealmMemberImplCopyWithImpl < _ $SnRealmMemberImpl > ( this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $SnRealmMemberImplToJson (
this ,
) ;
}
}
abstract class _SnRealmMember implements SnRealmMember {
const factory _SnRealmMember (
{ required final int id ,
required final DateTime createdAt ,
required final DateTime updatedAt ,
required final DateTime ? deletedAt ,
required final int realmId ,
required final int accountId ,
required final SnRealm realm ,
required final SnAccount account ,
required final int powerLevel } ) = _ $SnRealmMemberImpl ;
factory _SnRealmMember . fromJson ( Map < String , dynamic > json ) =
_ $SnRealmMemberImpl . fromJson ;
@ override
int get id ;
@ override
DateTime get createdAt ;
@ override
DateTime get updatedAt ;
@ override
DateTime ? get deletedAt ;
@ override
int get realmId ;
@ override
int get accountId ;
@ override
SnRealm get realm ;
@ override
SnAccount get account ;
@ override
int get powerLevel ;
/// Create a copy of SnRealmMember
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $SnRealmMemberImplCopyWith < _ $SnRealmMemberImpl > get copyWith = >
throw _privateConstructorUsedError ;
}
SnRealm _ $SnRealmFromJson ( Map < String , dynamic > json ) {
return _SnRealm . fromJson ( json ) ;
}
/// @nodoc
mixin _ $SnRealm {
2024-11-16 17:16:54 +00:00
@ HiveField ( 0 )
2024-11-16 05:54:36 +00:00
int get id = > throw _privateConstructorUsedError ;
2024-11-16 17:16:54 +00:00
@ HiveField ( 1 )
2024-11-16 05:54:36 +00:00
DateTime get createdAt = > throw _privateConstructorUsedError ;
2024-11-16 17:16:54 +00:00
@ HiveField ( 2 )
2024-11-16 05:54:36 +00:00
DateTime get updatedAt = > throw _privateConstructorUsedError ;
2024-11-16 17:16:54 +00:00
@ HiveField ( 3 )
2024-11-16 05:54:36 +00:00
DateTime ? get deletedAt = > throw _privateConstructorUsedError ;
2024-11-16 17:16:54 +00:00
@ HiveField ( 4 )
2024-11-16 05:54:36 +00:00
String get alias = > throw _privateConstructorUsedError ;
2024-11-16 17:16:54 +00:00
@ HiveField ( 5 )
2024-11-16 05:54:36 +00:00
String get name = > throw _privateConstructorUsedError ;
2024-11-16 17:16:54 +00:00
@ HiveField ( 6 )
2024-11-16 05:54:36 +00:00
String get description = > throw _privateConstructorUsedError ;
List < SnRealmMember > ? get members = > throw _privateConstructorUsedError ;
2024-11-16 17:16:54 +00:00
@ HiveField ( 7 )
2024-11-16 05:54:36 +00:00
String ? get avatar = > throw _privateConstructorUsedError ;
2024-11-16 17:16:54 +00:00
@ HiveField ( 8 )
2024-11-16 05:54:36 +00:00
String ? get banner = > throw _privateConstructorUsedError ;
2024-11-16 17:16:54 +00:00
@ HiveField ( 9 )
2024-11-16 05:54:36 +00:00
Map < String , dynamic > ? get accessPolicy = > throw _privateConstructorUsedError ;
2024-11-16 17:16:54 +00:00
@ HiveField ( 10 )
int get accountId = > throw _privateConstructorUsedError ;
@ HiveField ( 11 )
2024-11-16 05:54:36 +00:00
bool get isPublic = > throw _privateConstructorUsedError ;
2024-11-16 17:16:54 +00:00
@ HiveField ( 12 )
2024-11-16 05:54:36 +00:00
bool get isCommunity = > throw _privateConstructorUsedError ;
/// Serializes this SnRealm to a JSON map.
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
/// Create a copy of SnRealm
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$SnRealmCopyWith < SnRealm > get copyWith = > throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SnRealmCopyWith < $Res > {
factory $SnRealmCopyWith ( SnRealm value , $Res Function ( SnRealm ) then ) =
_ $SnRealmCopyWithImpl < $Res , SnRealm > ;
@ useResult
$Res call (
2024-11-16 17:16:54 +00:00
{ @ HiveField ( 0 ) int id ,
@ HiveField ( 1 ) DateTime createdAt ,
@ HiveField ( 2 ) DateTime updatedAt ,
@ HiveField ( 3 ) DateTime ? deletedAt ,
@ HiveField ( 4 ) String alias ,
@ HiveField ( 5 ) String name ,
@ HiveField ( 6 ) String description ,
2024-11-16 05:54:36 +00:00
List < SnRealmMember > ? members ,
2024-11-16 17:16:54 +00:00
@ HiveField ( 7 ) String ? avatar ,
@ HiveField ( 8 ) String ? banner ,
@ HiveField ( 9 ) Map < String , dynamic > ? accessPolicy ,
@ HiveField ( 10 ) int accountId ,
@ HiveField ( 11 ) bool isPublic ,
@ HiveField ( 12 ) bool isCommunity } ) ;
2024-11-16 05:54:36 +00:00
}
/// @nodoc
class _ $SnRealmCopyWithImpl < $Res , $Val extends SnRealm >
implements $SnRealmCopyWith < $Res > {
_ $SnRealmCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of SnRealm
/// 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 ,
Object ? members = freezed ,
Object ? avatar = freezed ,
Object ? banner = freezed ,
Object ? accessPolicy = freezed ,
2024-11-16 17:16:54 +00:00
Object ? accountId = null ,
2024-11-16 05:54:36 +00:00
Object ? isPublic = null ,
Object ? isCommunity = 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 ? ,
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 ,
members: freezed = = members
? _value . members
: members // ignore: cast_nullable_to_non_nullable
as List < SnRealmMember > ? ,
avatar: freezed = = avatar
? _value . avatar
: avatar // ignore: cast_nullable_to_non_nullable
as String ? ,
banner: freezed = = banner
? _value . banner
: banner // ignore: cast_nullable_to_non_nullable
as String ? ,
accessPolicy: freezed = = accessPolicy
? _value . accessPolicy
: accessPolicy // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ? ,
2024-11-16 17:16:54 +00:00
accountId: null = = accountId
? _value . accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int ,
2024-11-16 05:54:36 +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 ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $SnRealmImplCopyWith < $Res > implements $SnRealmCopyWith < $Res > {
factory _ $ $SnRealmImplCopyWith (
_ $SnRealmImpl value , $Res Function ( _ $SnRealmImpl ) then ) =
__ $ $SnRealmImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
2024-11-16 17:16:54 +00:00
{ @ HiveField ( 0 ) int id ,
@ HiveField ( 1 ) DateTime createdAt ,
@ HiveField ( 2 ) DateTime updatedAt ,
@ HiveField ( 3 ) DateTime ? deletedAt ,
@ HiveField ( 4 ) String alias ,
@ HiveField ( 5 ) String name ,
@ HiveField ( 6 ) String description ,
2024-11-16 05:54:36 +00:00
List < SnRealmMember > ? members ,
2024-11-16 17:16:54 +00:00
@ HiveField ( 7 ) String ? avatar ,
@ HiveField ( 8 ) String ? banner ,
@ HiveField ( 9 ) Map < String , dynamic > ? accessPolicy ,
@ HiveField ( 10 ) int accountId ,
@ HiveField ( 11 ) bool isPublic ,
@ HiveField ( 12 ) bool isCommunity } ) ;
2024-11-16 05:54:36 +00:00
}
/// @nodoc
class __ $ $SnRealmImplCopyWithImpl < $Res >
extends _ $SnRealmCopyWithImpl < $Res , _ $SnRealmImpl >
implements _ $ $SnRealmImplCopyWith < $Res > {
__ $ $SnRealmImplCopyWithImpl (
_ $SnRealmImpl _value , $Res Function ( _ $SnRealmImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of SnRealm
/// 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 ,
Object ? members = freezed ,
Object ? avatar = freezed ,
Object ? banner = freezed ,
Object ? accessPolicy = freezed ,
2024-11-16 17:16:54 +00:00
Object ? accountId = null ,
2024-11-16 05:54:36 +00:00
Object ? isPublic = null ,
Object ? isCommunity = null ,
} ) {
return _then ( _ $SnRealmImpl (
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 ? ,
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 ,
members: freezed = = members
? _value . _members
: members // ignore: cast_nullable_to_non_nullable
as List < SnRealmMember > ? ,
avatar: freezed = = avatar
? _value . avatar
: avatar // ignore: cast_nullable_to_non_nullable
as String ? ,
banner: freezed = = banner
? _value . banner
: banner // ignore: cast_nullable_to_non_nullable
as String ? ,
accessPolicy: freezed = = accessPolicy
? _value . _accessPolicy
: accessPolicy // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ? ,
2024-11-16 17:16:54 +00:00
accountId: null = = accountId
? _value . accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int ,
2024-11-16 05:54:36 +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 ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2024-11-16 17:16:54 +00:00
@ HiveType ( typeId: 1 )
class _ $SnRealmImpl extends _SnRealm {
2024-11-16 05:54:36 +00:00
const _ $SnRealmImpl (
2024-11-16 17:16:54 +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 ,
final List < SnRealmMember > ? members ,
@ HiveField ( 7 ) required this . avatar ,
@ HiveField ( 8 ) required this . banner ,
@ HiveField ( 9 ) required final Map < String , dynamic > ? accessPolicy ,
@ HiveField ( 10 ) required this . accountId ,
@ HiveField ( 11 ) required this . isPublic ,
@ HiveField ( 12 ) required this . isCommunity } )
2024-11-16 05:54:36 +00:00
: _members = members ,
2024-11-16 17:16:54 +00:00
_accessPolicy = accessPolicy ,
super . _ ( ) ;
2024-11-16 05:54:36 +00:00
factory _ $SnRealmImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $SnRealmImplFromJson ( json ) ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 0 )
2024-11-16 05:54:36 +00:00
final int id ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 1 )
2024-11-16 05:54:36 +00:00
final DateTime createdAt ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 2 )
2024-11-16 05:54:36 +00:00
final DateTime updatedAt ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 3 )
2024-11-16 05:54:36 +00:00
final DateTime ? deletedAt ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 4 )
2024-11-16 05:54:36 +00:00
final String alias ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 5 )
2024-11-16 05:54:36 +00:00
final String name ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 6 )
2024-11-16 05:54:36 +00:00
final String description ;
final List < SnRealmMember > ? _members ;
@ override
List < SnRealmMember > ? get members {
final value = _members ;
if ( value = = null ) return null ;
if ( _members is EqualUnmodifiableListView ) return _members ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( value ) ;
}
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 7 )
2024-11-16 05:54:36 +00:00
final String ? avatar ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 8 )
2024-11-16 05:54:36 +00:00
final String ? banner ;
final Map < String , dynamic > ? _accessPolicy ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 9 )
2024-11-16 05:54:36 +00:00
Map < String , dynamic > ? get accessPolicy {
final value = _accessPolicy ;
if ( value = = null ) return null ;
if ( _accessPolicy is EqualUnmodifiableMapView ) return _accessPolicy ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView ( value ) ;
}
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 10 )
final int accountId ;
@ override
@ HiveField ( 11 )
2024-11-16 05:54:36 +00:00
final bool isPublic ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 12 )
2024-11-16 05:54:36 +00:00
final bool isCommunity ;
@ override
String toString ( ) {
2024-11-16 17:16:54 +00:00
return ' SnRealm(id: $ id , createdAt: $ createdAt , updatedAt: $ updatedAt , deletedAt: $ deletedAt , alias: $ alias , name: $ name , description: $ description , members: $ members , avatar: $ avatar , banner: $ banner , accessPolicy: $ accessPolicy , accountId: $ accountId , isPublic: $ isPublic , isCommunity: $ isCommunity ) ' ;
2024-11-16 05:54:36 +00:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $SnRealmImpl & &
( 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 . 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 ) & &
( identical ( other . avatar , avatar ) | | other . avatar = = avatar ) & &
( identical ( other . banner , banner ) | | other . banner = = banner ) & &
const DeepCollectionEquality ( )
. equals ( other . _accessPolicy , _accessPolicy ) & &
2024-11-16 17:16:54 +00:00
( identical ( other . accountId , accountId ) | |
other . accountId = = accountId ) & &
2024-11-16 05:54:36 +00:00
( identical ( other . isPublic , isPublic ) | |
other . isPublic = = isPublic ) & &
( identical ( other . isCommunity , isCommunity ) | |
2024-11-16 17:16:54 +00:00
other . isCommunity = = isCommunity ) ) ;
2024-11-16 05:54:36 +00:00
}
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
int get hashCode = > Object . hash (
runtimeType ,
id ,
createdAt ,
updatedAt ,
deletedAt ,
alias ,
name ,
description ,
const DeepCollectionEquality ( ) . hash ( _members ) ,
avatar ,
banner ,
const DeepCollectionEquality ( ) . hash ( _accessPolicy ) ,
2024-11-16 17:16:54 +00:00
accountId ,
2024-11-16 05:54:36 +00:00
isPublic ,
2024-11-16 17:16:54 +00:00
isCommunity ) ;
2024-11-16 05:54:36 +00:00
/// Create a copy of SnRealm
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $SnRealmImplCopyWith < _ $SnRealmImpl > get copyWith = >
__ $ $SnRealmImplCopyWithImpl < _ $SnRealmImpl > ( this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $SnRealmImplToJson (
this ,
) ;
}
}
2024-11-16 17:16:54 +00:00
abstract class _SnRealm extends SnRealm {
2024-11-16 05:54:36 +00:00
const factory _SnRealm (
2024-11-16 17:16:54 +00:00
{ @ 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 alias ,
@ HiveField ( 5 ) required final String name ,
@ HiveField ( 6 ) required final String description ,
final List < SnRealmMember > ? members ,
@ HiveField ( 7 ) required final String ? avatar ,
@ HiveField ( 8 ) required final String ? banner ,
@ HiveField ( 9 ) required final Map < String , dynamic > ? accessPolicy ,
@ HiveField ( 10 ) required final int accountId ,
@ HiveField ( 11 ) required final bool isPublic ,
@ HiveField ( 12 ) required final bool isCommunity } ) = _ $SnRealmImpl ;
const _SnRealm . _ ( ) : super . _ ( ) ;
2024-11-16 05:54:36 +00:00
factory _SnRealm . fromJson ( Map < String , dynamic > json ) = _ $SnRealmImpl . fromJson ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 0 )
2024-11-16 05:54:36 +00:00
int get id ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 1 )
2024-11-16 05:54:36 +00:00
DateTime get createdAt ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 2 )
2024-11-16 05:54:36 +00:00
DateTime get updatedAt ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 3 )
2024-11-16 05:54:36 +00:00
DateTime ? get deletedAt ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 4 )
2024-11-16 05:54:36 +00:00
String get alias ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 5 )
2024-11-16 05:54:36 +00:00
String get name ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 6 )
2024-11-16 05:54:36 +00:00
String get description ;
@ override
List < SnRealmMember > ? get members ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 7 )
2024-11-16 05:54:36 +00:00
String ? get avatar ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 8 )
2024-11-16 05:54:36 +00:00
String ? get banner ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 9 )
2024-11-16 05:54:36 +00:00
Map < String , dynamic > ? get accessPolicy ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 10 )
int get accountId ;
@ override
@ HiveField ( 11 )
2024-11-16 05:54:36 +00:00
bool get isPublic ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 12 )
2024-11-16 05:54:36 +00:00
bool get isCommunity ;
/// Create a copy of SnRealm
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $SnRealmImplCopyWith < _ $SnRealmImpl > get copyWith = >
throw _privateConstructorUsedError ;
}