2024-11-09 10:28:45 +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 ' account.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 ' ) ;
SnAccount _ $SnAccountFromJson ( Map < String , dynamic > json ) {
return _SnAccount . fromJson ( json ) ;
}
/// @nodoc
mixin _ $SnAccount {
2024-11-16 17:16:54 +00:00
@ HiveField ( 0 )
2024-11-09 10:28:45 +00:00
int get id = > throw _privateConstructorUsedError ;
DateTime get createdAt = > throw _privateConstructorUsedError ;
2024-11-16 17:16:54 +00:00
DateTime get updatedAt = > throw _privateConstructorUsedError ;
2024-11-09 10:28:45 +00:00
DateTime ? get deletedAt = > throw _privateConstructorUsedError ;
2024-11-16 17:16:54 +00:00
DateTime ? get confirmedAt = > throw _privateConstructorUsedError ;
List < SnAccountContact > ? get contacts = > throw _privateConstructorUsedError ;
String get avatar = > throw _privateConstructorUsedError ;
String get banner = > throw _privateConstructorUsedError ;
2024-11-09 10:28:45 +00:00
String get description = > throw _privateConstructorUsedError ;
String get name = > throw _privateConstructorUsedError ;
String get nick = > throw _privateConstructorUsedError ;
Map < String , dynamic > get permNodes = > throw _privateConstructorUsedError ;
SnAccountProfile ? get profile = > throw _privateConstructorUsedError ;
DateTime ? get suspendedAt = > throw _privateConstructorUsedError ;
2024-11-16 17:16:54 +00:00
int ? get affiliatedId = > throw _privateConstructorUsedError ;
int ? get affiliatedTo = > throw _privateConstructorUsedError ;
int ? get automatedBy = > throw _privateConstructorUsedError ;
int ? get automatedId = > throw _privateConstructorUsedError ;
2024-11-09 10:28:45 +00:00
/// Serializes this SnAccount to a JSON map.
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
/// Create a copy of SnAccount
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$SnAccountCopyWith < SnAccount > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SnAccountCopyWith < $Res > {
factory $SnAccountCopyWith ( SnAccount value , $Res Function ( SnAccount ) then ) =
_ $SnAccountCopyWithImpl < $Res , SnAccount > ;
@ useResult
$Res call (
2024-11-16 17:16:54 +00:00
{ @ HiveField ( 0 ) int id ,
2024-11-09 10:28:45 +00:00
DateTime createdAt ,
2024-11-16 17:16:54 +00:00
DateTime updatedAt ,
2024-11-09 10:28:45 +00:00
DateTime ? deletedAt ,
2024-11-16 17:16:54 +00:00
DateTime ? confirmedAt ,
List < SnAccountContact > ? contacts ,
String avatar ,
String banner ,
2024-11-09 10:28:45 +00:00
String description ,
String name ,
String nick ,
Map < String , dynamic > permNodes ,
SnAccountProfile ? profile ,
DateTime ? suspendedAt ,
2024-11-16 17:16:54 +00:00
int ? affiliatedId ,
int ? affiliatedTo ,
int ? automatedBy ,
int ? automatedId } ) ;
2024-11-09 10:28:45 +00:00
$SnAccountProfileCopyWith < $Res > ? get profile ;
}
/// @nodoc
class _ $SnAccountCopyWithImpl < $Res , $Val extends SnAccount >
implements $SnAccountCopyWith < $Res > {
_ $SnAccountCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of SnAccount
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? id = null ,
Object ? createdAt = null ,
2024-11-16 17:16:54 +00:00
Object ? updatedAt = null ,
2024-11-09 10:28:45 +00:00
Object ? deletedAt = freezed ,
2024-11-16 17:16:54 +00:00
Object ? confirmedAt = freezed ,
Object ? contacts = freezed ,
Object ? avatar = null ,
Object ? banner = null ,
2024-11-09 10:28:45 +00:00
Object ? description = null ,
Object ? name = null ,
Object ? nick = null ,
Object ? permNodes = null ,
Object ? profile = freezed ,
Object ? suspendedAt = freezed ,
2024-11-16 17:16:54 +00:00
Object ? affiliatedId = freezed ,
Object ? affiliatedTo = freezed ,
Object ? automatedBy = freezed ,
Object ? automatedId = freezed ,
2024-11-09 10:28:45 +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 ,
2024-11-16 17:16:54 +00:00
updatedAt: null = = updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
2024-11-09 10:28:45 +00:00
deletedAt: freezed = = deletedAt
? _value . deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
2024-11-16 17:16:54 +00:00
confirmedAt: freezed = = confirmedAt
? _value . confirmedAt
: confirmedAt // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
contacts: freezed = = contacts
? _value . contacts
: contacts // ignore: cast_nullable_to_non_nullable
as List < SnAccountContact > ? ,
avatar: null = = avatar
? _value . avatar
: avatar // ignore: cast_nullable_to_non_nullable
as String ,
banner: null = = banner
? _value . banner
: banner // ignore: cast_nullable_to_non_nullable
as String ,
2024-11-09 10:28:45 +00:00
description: null = = description
? _value . description
: description // ignore: cast_nullable_to_non_nullable
as String ,
name: null = = name
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
nick: null = = nick
? _value . nick
: nick // ignore: cast_nullable_to_non_nullable
as String ,
permNodes: null = = permNodes
? _value . permNodes
: permNodes // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
profile: freezed = = profile
? _value . profile
: profile // ignore: cast_nullable_to_non_nullable
as SnAccountProfile ? ,
suspendedAt: freezed = = suspendedAt
? _value . suspendedAt
: suspendedAt // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
2024-11-16 17:16:54 +00:00
affiliatedId: freezed = = affiliatedId
? _value . affiliatedId
: affiliatedId // ignore: cast_nullable_to_non_nullable
as int ? ,
affiliatedTo: freezed = = affiliatedTo
? _value . affiliatedTo
: affiliatedTo // ignore: cast_nullable_to_non_nullable
as int ? ,
automatedBy: freezed = = automatedBy
? _value . automatedBy
: automatedBy // ignore: cast_nullable_to_non_nullable
as int ? ,
automatedId: freezed = = automatedId
? _value . automatedId
: automatedId // ignore: cast_nullable_to_non_nullable
as int ? ,
2024-11-09 10:28:45 +00:00
) as $Val ) ;
}
/// Create a copy of SnAccount
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$SnAccountProfileCopyWith < $Res > ? get profile {
if ( _value . profile = = null ) {
return null ;
}
return $SnAccountProfileCopyWith < $Res > ( _value . profile ! , ( value ) {
return _then ( _value . copyWith ( profile: value ) as $Val ) ;
} ) ;
}
}
/// @nodoc
abstract class _ $ $SnAccountImplCopyWith < $Res >
implements $SnAccountCopyWith < $Res > {
factory _ $ $SnAccountImplCopyWith (
_ $SnAccountImpl value , $Res Function ( _ $SnAccountImpl ) then ) =
__ $ $SnAccountImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
2024-11-16 17:16:54 +00:00
{ @ HiveField ( 0 ) int id ,
2024-11-09 10:28:45 +00:00
DateTime createdAt ,
2024-11-16 17:16:54 +00:00
DateTime updatedAt ,
2024-11-09 10:28:45 +00:00
DateTime ? deletedAt ,
2024-11-16 17:16:54 +00:00
DateTime ? confirmedAt ,
List < SnAccountContact > ? contacts ,
String avatar ,
String banner ,
2024-11-09 10:28:45 +00:00
String description ,
String name ,
String nick ,
Map < String , dynamic > permNodes ,
SnAccountProfile ? profile ,
DateTime ? suspendedAt ,
2024-11-16 17:16:54 +00:00
int ? affiliatedId ,
int ? affiliatedTo ,
int ? automatedBy ,
int ? automatedId } ) ;
2024-11-09 10:28:45 +00:00
@ override
$SnAccountProfileCopyWith < $Res > ? get profile ;
}
/// @nodoc
class __ $ $SnAccountImplCopyWithImpl < $Res >
extends _ $SnAccountCopyWithImpl < $Res , _ $SnAccountImpl >
implements _ $ $SnAccountImplCopyWith < $Res > {
__ $ $SnAccountImplCopyWithImpl (
_ $SnAccountImpl _value , $Res Function ( _ $SnAccountImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of SnAccount
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? id = null ,
Object ? createdAt = null ,
2024-11-16 17:16:54 +00:00
Object ? updatedAt = null ,
2024-11-09 10:28:45 +00:00
Object ? deletedAt = freezed ,
2024-11-16 17:16:54 +00:00
Object ? confirmedAt = freezed ,
Object ? contacts = freezed ,
Object ? avatar = null ,
Object ? banner = null ,
2024-11-09 10:28:45 +00:00
Object ? description = null ,
Object ? name = null ,
Object ? nick = null ,
Object ? permNodes = null ,
Object ? profile = freezed ,
Object ? suspendedAt = freezed ,
2024-11-16 17:16:54 +00:00
Object ? affiliatedId = freezed ,
Object ? affiliatedTo = freezed ,
Object ? automatedBy = freezed ,
Object ? automatedId = freezed ,
2024-11-09 10:28:45 +00:00
} ) {
return _then ( _ $SnAccountImpl (
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 ,
2024-11-16 17:16:54 +00:00
updatedAt: null = = updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
2024-11-09 10:28:45 +00:00
deletedAt: freezed = = deletedAt
? _value . deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
2024-11-16 17:16:54 +00:00
confirmedAt: freezed = = confirmedAt
? _value . confirmedAt
: confirmedAt // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
contacts: freezed = = contacts
? _value . _contacts
: contacts // ignore: cast_nullable_to_non_nullable
as List < SnAccountContact > ? ,
avatar: null = = avatar
? _value . avatar
: avatar // ignore: cast_nullable_to_non_nullable
as String ,
banner: null = = banner
? _value . banner
: banner // ignore: cast_nullable_to_non_nullable
as String ,
2024-11-09 10:28:45 +00:00
description: null = = description
? _value . description
: description // ignore: cast_nullable_to_non_nullable
as String ,
name: null = = name
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
nick: null = = nick
? _value . nick
: nick // ignore: cast_nullable_to_non_nullable
as String ,
permNodes: null = = permNodes
? _value . _permNodes
: permNodes // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
profile: freezed = = profile
? _value . profile
: profile // ignore: cast_nullable_to_non_nullable
as SnAccountProfile ? ,
suspendedAt: freezed = = suspendedAt
? _value . suspendedAt
: suspendedAt // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
2024-11-16 17:16:54 +00:00
affiliatedId: freezed = = affiliatedId
? _value . affiliatedId
: affiliatedId // ignore: cast_nullable_to_non_nullable
as int ? ,
affiliatedTo: freezed = = affiliatedTo
? _value . affiliatedTo
: affiliatedTo // ignore: cast_nullable_to_non_nullable
as int ? ,
automatedBy: freezed = = automatedBy
? _value . automatedBy
: automatedBy // ignore: cast_nullable_to_non_nullable
as int ? ,
automatedId: freezed = = automatedId
? _value . automatedId
: automatedId // ignore: cast_nullable_to_non_nullable
as int ? ,
2024-11-09 10:28:45 +00:00
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2024-11-16 17:16:54 +00:00
class _ $SnAccountImpl extends _SnAccount {
2024-11-09 10:28:45 +00:00
const _ $SnAccountImpl (
2024-11-16 17:16:54 +00:00
{ @ HiveField ( 0 ) required this . id ,
2024-11-09 10:28:45 +00:00
required this . createdAt ,
2024-11-16 17:16:54 +00:00
required this . updatedAt ,
2024-11-09 10:28:45 +00:00
required this . deletedAt ,
2024-11-16 17:16:54 +00:00
required this . confirmedAt ,
required final List < SnAccountContact > ? contacts ,
required this . avatar ,
required this . banner ,
2024-11-09 10:28:45 +00:00
required this . description ,
required this . name ,
required this . nick ,
required final Map < String , dynamic > permNodes ,
required this . profile ,
required this . suspendedAt ,
2024-11-16 17:16:54 +00:00
required this . affiliatedId ,
required this . affiliatedTo ,
required this . automatedBy ,
required this . automatedId } )
2024-11-09 10:28:45 +00:00
: _contacts = contacts ,
2024-11-16 17:16:54 +00:00
_permNodes = permNodes ,
super . _ ( ) ;
2024-11-09 10:28:45 +00:00
factory _ $SnAccountImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $SnAccountImplFromJson ( json ) ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 0 )
2024-11-09 10:28:45 +00:00
final int id ;
@ override
2024-11-16 17:16:54 +00:00
final DateTime createdAt ;
2024-11-09 10:28:45 +00:00
@ override
2024-11-16 17:16:54 +00:00
final DateTime updatedAt ;
2024-11-09 10:28:45 +00:00
@ override
2024-11-16 17:16:54 +00:00
final DateTime ? deletedAt ;
2024-11-09 10:28:45 +00:00
@ override
final DateTime ? confirmedAt ;
2024-11-16 17:16:54 +00:00
final List < SnAccountContact > ? _contacts ;
2024-11-09 10:28:45 +00:00
@ override
2024-11-16 17:16:54 +00:00
List < SnAccountContact > ? get contacts {
final value = _contacts ;
if ( value = = null ) return null ;
2024-11-09 10:28:45 +00:00
if ( _contacts is EqualUnmodifiableListView ) return _contacts ;
// ignore: implicit_dynamic_type
2024-11-16 17:16:54 +00:00
return EqualUnmodifiableListView ( value ) ;
2024-11-09 10:28:45 +00:00
}
@ override
2024-11-16 17:16:54 +00:00
final String avatar ;
2024-11-09 10:28:45 +00:00
@ override
2024-11-16 17:16:54 +00:00
final String banner ;
2024-11-09 10:28:45 +00:00
@ override
final String description ;
@ override
final String name ;
@ override
final String nick ;
final Map < String , dynamic > _permNodes ;
@ override
Map < String , dynamic > get permNodes {
if ( _permNodes is EqualUnmodifiableMapView ) return _permNodes ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView ( _permNodes ) ;
}
@ override
final SnAccountProfile ? profile ;
@ override
final DateTime ? suspendedAt ;
@ override
2024-11-16 17:16:54 +00:00
final int ? affiliatedId ;
@ override
final int ? affiliatedTo ;
@ override
final int ? automatedBy ;
@ override
final int ? automatedId ;
2024-11-09 10:28:45 +00:00
@ override
String toString ( ) {
2024-11-16 17:16:54 +00:00
return ' SnAccount(id: $ id , createdAt: $ createdAt , updatedAt: $ updatedAt , deletedAt: $ deletedAt , confirmedAt: $ confirmedAt , contacts: $ contacts , avatar: $ avatar , banner: $ banner , description: $ description , name: $ name , nick: $ nick , permNodes: $ permNodes , profile: $ profile , suspendedAt: $ suspendedAt , affiliatedId: $ affiliatedId , affiliatedTo: $ affiliatedTo , automatedBy: $ automatedBy , automatedId: $ automatedId ) ' ;
2024-11-09 10:28:45 +00:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $SnAccountImpl & &
( identical ( other . id , id ) | | other . id = = id ) & &
( identical ( other . createdAt , createdAt ) | |
other . createdAt = = createdAt ) & &
2024-11-16 17:16:54 +00:00
( identical ( other . updatedAt , updatedAt ) | |
other . updatedAt = = updatedAt ) & &
2024-11-09 10:28:45 +00:00
( identical ( other . deletedAt , deletedAt ) | |
other . deletedAt = = deletedAt ) & &
2024-11-16 17:16:54 +00:00
( identical ( other . confirmedAt , confirmedAt ) | |
other . confirmedAt = = confirmedAt ) & &
const DeepCollectionEquality ( ) . equals ( other . _contacts , _contacts ) & &
( identical ( other . avatar , avatar ) | | other . avatar = = avatar ) & &
( identical ( other . banner , banner ) | | other . banner = = banner ) & &
2024-11-09 10:28:45 +00:00
( identical ( other . description , description ) | |
other . description = = description ) & &
( identical ( other . name , name ) | | other . name = = name ) & &
( identical ( other . nick , nick ) | | other . nick = = nick ) & &
const DeepCollectionEquality ( )
. equals ( other . _permNodes , _permNodes ) & &
( identical ( other . profile , profile ) | | other . profile = = profile ) & &
( identical ( other . suspendedAt , suspendedAt ) | |
other . suspendedAt = = suspendedAt ) & &
2024-11-16 17:16:54 +00:00
( identical ( other . affiliatedId , affiliatedId ) | |
other . affiliatedId = = affiliatedId ) & &
( identical ( other . affiliatedTo , affiliatedTo ) | |
other . affiliatedTo = = affiliatedTo ) & &
( identical ( other . automatedBy , automatedBy ) | |
other . automatedBy = = automatedBy ) & &
( identical ( other . automatedId , automatedId ) | |
other . automatedId = = automatedId ) ) ;
2024-11-09 10:28:45 +00:00
}
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
int get hashCode = > Object . hash (
runtimeType ,
id ,
createdAt ,
2024-11-16 17:16:54 +00:00
updatedAt ,
2024-11-09 10:28:45 +00:00
deletedAt ,
2024-11-16 17:16:54 +00:00
confirmedAt ,
const DeepCollectionEquality ( ) . hash ( _contacts ) ,
avatar ,
banner ,
2024-11-09 10:28:45 +00:00
description ,
name ,
nick ,
const DeepCollectionEquality ( ) . hash ( _permNodes ) ,
profile ,
suspendedAt ,
2024-11-16 17:16:54 +00:00
affiliatedId ,
affiliatedTo ,
automatedBy ,
automatedId ) ;
2024-11-09 10:28:45 +00:00
/// Create a copy of SnAccount
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $SnAccountImplCopyWith < _ $SnAccountImpl > get copyWith = >
__ $ $SnAccountImplCopyWithImpl < _ $SnAccountImpl > ( this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $SnAccountImplToJson (
this ,
) ;
}
}
2024-11-16 17:16:54 +00:00
abstract class _SnAccount extends SnAccount {
2024-11-09 10:28:45 +00:00
const factory _SnAccount (
2024-11-16 17:16:54 +00:00
{ @ HiveField ( 0 ) required final int id ,
2024-11-09 10:28:45 +00:00
required final DateTime createdAt ,
2024-11-16 17:16:54 +00:00
required final DateTime updatedAt ,
2024-11-09 10:28:45 +00:00
required final DateTime ? deletedAt ,
2024-11-16 17:16:54 +00:00
required final DateTime ? confirmedAt ,
required final List < SnAccountContact > ? contacts ,
required final String avatar ,
required final String banner ,
2024-11-09 10:28:45 +00:00
required final String description ,
required final String name ,
required final String nick ,
required final Map < String , dynamic > permNodes ,
required final SnAccountProfile ? profile ,
required final DateTime ? suspendedAt ,
2024-11-16 17:16:54 +00:00
required final int ? affiliatedId ,
required final int ? affiliatedTo ,
required final int ? automatedBy ,
required final int ? automatedId } ) = _ $SnAccountImpl ;
const _SnAccount . _ ( ) : super . _ ( ) ;
2024-11-09 10:28:45 +00:00
factory _SnAccount . fromJson ( Map < String , dynamic > json ) =
_ $SnAccountImpl . fromJson ;
@ override
2024-11-16 17:16:54 +00:00
@ HiveField ( 0 )
2024-11-09 10:28:45 +00:00
int get id ;
@ override
2024-11-16 17:16:54 +00:00
DateTime get createdAt ;
2024-11-09 10:28:45 +00:00
@ override
2024-11-16 17:16:54 +00:00
DateTime get updatedAt ;
2024-11-09 10:28:45 +00:00
@ override
2024-11-16 17:16:54 +00:00
DateTime ? get deletedAt ;
2024-11-09 10:28:45 +00:00
@ override
DateTime ? get confirmedAt ;
@ override
2024-11-16 17:16:54 +00:00
List < SnAccountContact > ? get contacts ;
2024-11-09 10:28:45 +00:00
@ override
2024-11-16 17:16:54 +00:00
String get avatar ;
2024-11-09 10:28:45 +00:00
@ override
2024-11-16 17:16:54 +00:00
String get banner ;
2024-11-09 10:28:45 +00:00
@ override
String get description ;
@ override
String get name ;
@ override
String get nick ;
@ override
Map < String , dynamic > get permNodes ;
@ override
SnAccountProfile ? get profile ;
@ override
DateTime ? get suspendedAt ;
@ override
2024-11-16 17:16:54 +00:00
int ? get affiliatedId ;
@ override
int ? get affiliatedTo ;
@ override
int ? get automatedBy ;
@ override
int ? get automatedId ;
2024-11-09 10:28:45 +00:00
/// Create a copy of SnAccount
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $SnAccountImplCopyWith < _ $SnAccountImpl > get copyWith = >
throw _privateConstructorUsedError ;
}
SnAccountContact _ $SnAccountContactFromJson ( Map < String , dynamic > json ) {
return _SnAccountContact . fromJson ( json ) ;
}
/// @nodoc
mixin _ $SnAccountContact {
int get accountId = > throw _privateConstructorUsedError ;
String get content = > throw _privateConstructorUsedError ;
DateTime get createdAt = > throw _privateConstructorUsedError ;
DateTime ? get deletedAt = > throw _privateConstructorUsedError ;
int get id = > throw _privateConstructorUsedError ;
bool get isPrimary = > throw _privateConstructorUsedError ;
bool get isPublic = > throw _privateConstructorUsedError ;
int get type = > throw _privateConstructorUsedError ;
DateTime get updatedAt = > throw _privateConstructorUsedError ;
DateTime ? get verifiedAt = > throw _privateConstructorUsedError ;
/// Serializes this SnAccountContact to a JSON map.
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
/// Create a copy of SnAccountContact
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$SnAccountContactCopyWith < SnAccountContact > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SnAccountContactCopyWith < $Res > {
factory $SnAccountContactCopyWith (
SnAccountContact value , $Res Function ( SnAccountContact ) then ) =
_ $SnAccountContactCopyWithImpl < $Res , SnAccountContact > ;
@ useResult
$Res call (
{ int accountId ,
String content ,
DateTime createdAt ,
DateTime ? deletedAt ,
int id ,
bool isPrimary ,
bool isPublic ,
int type ,
DateTime updatedAt ,
DateTime ? verifiedAt } ) ;
}
/// @nodoc
class _ $SnAccountContactCopyWithImpl < $Res , $Val extends SnAccountContact >
implements $SnAccountContactCopyWith < $Res > {
_ $SnAccountContactCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of SnAccountContact
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? accountId = null ,
Object ? content = null ,
Object ? createdAt = null ,
Object ? deletedAt = freezed ,
Object ? id = null ,
Object ? isPrimary = null ,
Object ? isPublic = null ,
Object ? type = null ,
Object ? updatedAt = null ,
Object ? verifiedAt = freezed ,
} ) {
return _then ( _value . copyWith (
accountId: null = = accountId
? _value . accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int ,
content: null = = content
? _value . content
: content // ignore: cast_nullable_to_non_nullable
as String ,
createdAt: null = = createdAt
? _value . createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
deletedAt: freezed = = deletedAt
? _value . deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
id: null = = id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as int ,
isPrimary: null = = isPrimary
? _value . isPrimary
: isPrimary // ignore: cast_nullable_to_non_nullable
as bool ,
isPublic: null = = isPublic
? _value . isPublic
: isPublic // ignore: cast_nullable_to_non_nullable
as bool ,
type: null = = type
? _value . type
: type // ignore: cast_nullable_to_non_nullable
as int ,
updatedAt: null = = updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
verifiedAt: freezed = = verifiedAt
? _value . verifiedAt
: verifiedAt // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $SnAccountContactImplCopyWith < $Res >
implements $SnAccountContactCopyWith < $Res > {
factory _ $ $SnAccountContactImplCopyWith ( _ $SnAccountContactImpl value ,
$Res Function ( _ $SnAccountContactImpl ) then ) =
__ $ $SnAccountContactImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ int accountId ,
String content ,
DateTime createdAt ,
DateTime ? deletedAt ,
int id ,
bool isPrimary ,
bool isPublic ,
int type ,
DateTime updatedAt ,
DateTime ? verifiedAt } ) ;
}
/// @nodoc
class __ $ $SnAccountContactImplCopyWithImpl < $Res >
extends _ $SnAccountContactCopyWithImpl < $Res , _ $SnAccountContactImpl >
implements _ $ $SnAccountContactImplCopyWith < $Res > {
__ $ $SnAccountContactImplCopyWithImpl ( _ $SnAccountContactImpl _value ,
$Res Function ( _ $SnAccountContactImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of SnAccountContact
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? accountId = null ,
Object ? content = null ,
Object ? createdAt = null ,
Object ? deletedAt = freezed ,
Object ? id = null ,
Object ? isPrimary = null ,
Object ? isPublic = null ,
Object ? type = null ,
Object ? updatedAt = null ,
Object ? verifiedAt = freezed ,
} ) {
return _then ( _ $SnAccountContactImpl (
accountId: null = = accountId
? _value . accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int ,
content: null = = content
? _value . content
: content // ignore: cast_nullable_to_non_nullable
as String ,
createdAt: null = = createdAt
? _value . createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
deletedAt: freezed = = deletedAt
? _value . deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
id: null = = id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as int ,
isPrimary: null = = isPrimary
? _value . isPrimary
: isPrimary // ignore: cast_nullable_to_non_nullable
as bool ,
isPublic: null = = isPublic
? _value . isPublic
: isPublic // ignore: cast_nullable_to_non_nullable
as bool ,
type: null = = type
? _value . type
: type // ignore: cast_nullable_to_non_nullable
as int ,
updatedAt: null = = updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
verifiedAt: freezed = = verifiedAt
? _value . verifiedAt
: verifiedAt // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $SnAccountContactImpl implements _SnAccountContact {
const _ $SnAccountContactImpl (
{ required this . accountId ,
required this . content ,
required this . createdAt ,
required this . deletedAt ,
required this . id ,
required this . isPrimary ,
required this . isPublic ,
required this . type ,
required this . updatedAt ,
required this . verifiedAt } ) ;
factory _ $SnAccountContactImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $SnAccountContactImplFromJson ( json ) ;
@ override
final int accountId ;
@ override
final String content ;
@ override
final DateTime createdAt ;
@ override
final DateTime ? deletedAt ;
@ override
final int id ;
@ override
final bool isPrimary ;
@ override
final bool isPublic ;
@ override
final int type ;
@ override
final DateTime updatedAt ;
@ override
final DateTime ? verifiedAt ;
@ override
String toString ( ) {
return ' SnAccountContact(accountId: $ accountId , content: $ content , createdAt: $ createdAt , deletedAt: $ deletedAt , id: $ id , isPrimary: $ isPrimary , isPublic: $ isPublic , type: $ type , updatedAt: $ updatedAt , verifiedAt: $ verifiedAt ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $SnAccountContactImpl & &
( identical ( other . accountId , accountId ) | |
other . accountId = = accountId ) & &
( identical ( other . content , content ) | | other . content = = content ) & &
( identical ( other . createdAt , createdAt ) | |
other . createdAt = = createdAt ) & &
( identical ( other . deletedAt , deletedAt ) | |
other . deletedAt = = deletedAt ) & &
( identical ( other . id , id ) | | other . id = = id ) & &
( identical ( other . isPrimary , isPrimary ) | |
other . isPrimary = = isPrimary ) & &
( identical ( other . isPublic , isPublic ) | |
other . isPublic = = isPublic ) & &
( identical ( other . type , type ) | | other . type = = type ) & &
( identical ( other . updatedAt , updatedAt ) | |
other . updatedAt = = updatedAt ) & &
( identical ( other . verifiedAt , verifiedAt ) | |
other . verifiedAt = = verifiedAt ) ) ;
}
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
int get hashCode = > Object . hash ( runtimeType , accountId , content , createdAt ,
deletedAt , id , isPrimary , isPublic , type , updatedAt , verifiedAt ) ;
/// Create a copy of SnAccountContact
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $SnAccountContactImplCopyWith < _ $SnAccountContactImpl > get copyWith = >
__ $ $SnAccountContactImplCopyWithImpl < _ $SnAccountContactImpl > (
this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $SnAccountContactImplToJson (
this ,
) ;
}
}
abstract class _SnAccountContact implements SnAccountContact {
const factory _SnAccountContact (
{ required final int accountId ,
required final String content ,
required final DateTime createdAt ,
required final DateTime ? deletedAt ,
required final int id ,
required final bool isPrimary ,
required final bool isPublic ,
required final int type ,
required final DateTime updatedAt ,
required final DateTime ? verifiedAt } ) = _ $SnAccountContactImpl ;
factory _SnAccountContact . fromJson ( Map < String , dynamic > json ) =
_ $SnAccountContactImpl . fromJson ;
@ override
int get accountId ;
@ override
String get content ;
@ override
DateTime get createdAt ;
@ override
DateTime ? get deletedAt ;
@ override
int get id ;
@ override
bool get isPrimary ;
@ override
bool get isPublic ;
@ override
int get type ;
@ override
DateTime get updatedAt ;
@ override
DateTime ? get verifiedAt ;
/// Create a copy of SnAccountContact
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $SnAccountContactImplCopyWith < _ $SnAccountContactImpl > get copyWith = >
throw _privateConstructorUsedError ;
}
SnAccountProfile _ $SnAccountProfileFromJson ( Map < String , dynamic > json ) {
return _SnAccountProfile . fromJson ( json ) ;
}
/// @nodoc
mixin _ $SnAccountProfile {
int get id = > throw _privateConstructorUsedError ;
int get accountId = > throw _privateConstructorUsedError ;
DateTime ? get birthday = > throw _privateConstructorUsedError ;
DateTime get createdAt = > throw _privateConstructorUsedError ;
DateTime ? get deletedAt = > throw _privateConstructorUsedError ;
int get experience = > throw _privateConstructorUsedError ;
String get firstName = > throw _privateConstructorUsedError ;
String get lastName = > throw _privateConstructorUsedError ;
DateTime ? get lastSeenAt = > throw _privateConstructorUsedError ;
DateTime get updatedAt = > throw _privateConstructorUsedError ;
/// Serializes this SnAccountProfile to a JSON map.
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
/// Create a copy of SnAccountProfile
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$SnAccountProfileCopyWith < SnAccountProfile > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SnAccountProfileCopyWith < $Res > {
factory $SnAccountProfileCopyWith (
SnAccountProfile value , $Res Function ( SnAccountProfile ) then ) =
_ $SnAccountProfileCopyWithImpl < $Res , SnAccountProfile > ;
@ useResult
$Res call (
{ int id ,
int accountId ,
DateTime ? birthday ,
DateTime createdAt ,
DateTime ? deletedAt ,
int experience ,
String firstName ,
String lastName ,
DateTime ? lastSeenAt ,
DateTime updatedAt } ) ;
}
/// @nodoc
class _ $SnAccountProfileCopyWithImpl < $Res , $Val extends SnAccountProfile >
implements $SnAccountProfileCopyWith < $Res > {
_ $SnAccountProfileCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of SnAccountProfile
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? id = null ,
Object ? accountId = null ,
Object ? birthday = freezed ,
Object ? createdAt = null ,
Object ? deletedAt = freezed ,
Object ? experience = null ,
Object ? firstName = null ,
Object ? lastName = null ,
Object ? lastSeenAt = freezed ,
Object ? updatedAt = null ,
} ) {
return _then ( _value . copyWith (
id: null = = id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as int ,
accountId: null = = accountId
? _value . accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int ,
birthday: freezed = = birthday
? _value . birthday
: birthday // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
createdAt: null = = createdAt
? _value . createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
deletedAt: freezed = = deletedAt
? _value . deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
experience: null = = experience
? _value . experience
: experience // ignore: cast_nullable_to_non_nullable
as int ,
firstName: null = = firstName
? _value . firstName
: firstName // ignore: cast_nullable_to_non_nullable
as String ,
lastName: null = = lastName
? _value . lastName
: lastName // ignore: cast_nullable_to_non_nullable
as String ,
lastSeenAt: freezed = = lastSeenAt
? _value . lastSeenAt
: lastSeenAt // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
updatedAt: null = = updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $SnAccountProfileImplCopyWith < $Res >
implements $SnAccountProfileCopyWith < $Res > {
factory _ $ $SnAccountProfileImplCopyWith ( _ $SnAccountProfileImpl value ,
$Res Function ( _ $SnAccountProfileImpl ) then ) =
__ $ $SnAccountProfileImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ int id ,
int accountId ,
DateTime ? birthday ,
DateTime createdAt ,
DateTime ? deletedAt ,
int experience ,
String firstName ,
String lastName ,
DateTime ? lastSeenAt ,
DateTime updatedAt } ) ;
}
/// @nodoc
class __ $ $SnAccountProfileImplCopyWithImpl < $Res >
extends _ $SnAccountProfileCopyWithImpl < $Res , _ $SnAccountProfileImpl >
implements _ $ $SnAccountProfileImplCopyWith < $Res > {
__ $ $SnAccountProfileImplCopyWithImpl ( _ $SnAccountProfileImpl _value ,
$Res Function ( _ $SnAccountProfileImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of SnAccountProfile
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? id = null ,
Object ? accountId = null ,
Object ? birthday = freezed ,
Object ? createdAt = null ,
Object ? deletedAt = freezed ,
Object ? experience = null ,
Object ? firstName = null ,
Object ? lastName = null ,
Object ? lastSeenAt = freezed ,
Object ? updatedAt = null ,
} ) {
return _then ( _ $SnAccountProfileImpl (
id: null = = id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as int ,
accountId: null = = accountId
? _value . accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int ,
birthday: freezed = = birthday
? _value . birthday
: birthday // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
createdAt: null = = createdAt
? _value . createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
deletedAt: freezed = = deletedAt
? _value . deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
experience: null = = experience
? _value . experience
: experience // ignore: cast_nullable_to_non_nullable
as int ,
firstName: null = = firstName
? _value . firstName
: firstName // ignore: cast_nullable_to_non_nullable
as String ,
lastName: null = = lastName
? _value . lastName
: lastName // ignore: cast_nullable_to_non_nullable
as String ,
lastSeenAt: freezed = = lastSeenAt
? _value . lastSeenAt
: lastSeenAt // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
updatedAt: null = = updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $SnAccountProfileImpl implements _SnAccountProfile {
const _ $SnAccountProfileImpl (
{ required this . id ,
required this . accountId ,
required this . birthday ,
required this . createdAt ,
required this . deletedAt ,
required this . experience ,
required this . firstName ,
required this . lastName ,
required this . lastSeenAt ,
required this . updatedAt } ) ;
factory _ $SnAccountProfileImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $SnAccountProfileImplFromJson ( json ) ;
@ override
final int id ;
@ override
final int accountId ;
@ override
final DateTime ? birthday ;
@ override
final DateTime createdAt ;
@ override
final DateTime ? deletedAt ;
@ override
final int experience ;
@ override
final String firstName ;
@ override
final String lastName ;
@ override
final DateTime ? lastSeenAt ;
@ override
final DateTime updatedAt ;
@ override
String toString ( ) {
return ' SnAccountProfile(id: $ id , accountId: $ accountId , birthday: $ birthday , createdAt: $ createdAt , deletedAt: $ deletedAt , experience: $ experience , firstName: $ firstName , lastName: $ lastName , lastSeenAt: $ lastSeenAt , updatedAt: $ updatedAt ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $SnAccountProfileImpl & &
( identical ( other . id , id ) | | other . id = = id ) & &
( identical ( other . accountId , accountId ) | |
other . accountId = = accountId ) & &
( identical ( other . birthday , birthday ) | |
other . birthday = = birthday ) & &
( identical ( other . createdAt , createdAt ) | |
other . createdAt = = createdAt ) & &
( identical ( other . deletedAt , deletedAt ) | |
other . deletedAt = = deletedAt ) & &
( identical ( other . experience , experience ) | |
other . experience = = experience ) & &
( identical ( other . firstName , firstName ) | |
other . firstName = = firstName ) & &
( identical ( other . lastName , lastName ) | |
other . lastName = = lastName ) & &
( identical ( other . lastSeenAt , lastSeenAt ) | |
other . lastSeenAt = = lastSeenAt ) & &
( identical ( other . updatedAt , updatedAt ) | |
other . updatedAt = = updatedAt ) ) ;
}
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
int get hashCode = > Object . hash (
runtimeType ,
id ,
accountId ,
birthday ,
createdAt ,
deletedAt ,
experience ,
firstName ,
lastName ,
lastSeenAt ,
updatedAt ) ;
/// Create a copy of SnAccountProfile
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $SnAccountProfileImplCopyWith < _ $SnAccountProfileImpl > get copyWith = >
__ $ $SnAccountProfileImplCopyWithImpl < _ $SnAccountProfileImpl > (
this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $SnAccountProfileImplToJson (
this ,
) ;
}
}
abstract class _SnAccountProfile implements SnAccountProfile {
const factory _SnAccountProfile (
{ required final int id ,
required final int accountId ,
required final DateTime ? birthday ,
required final DateTime createdAt ,
required final DateTime ? deletedAt ,
required final int experience ,
required final String firstName ,
required final String lastName ,
required final DateTime ? lastSeenAt ,
required final DateTime updatedAt } ) = _ $SnAccountProfileImpl ;
factory _SnAccountProfile . fromJson ( Map < String , dynamic > json ) =
_ $SnAccountProfileImpl . fromJson ;
@ override
int get id ;
@ override
int get accountId ;
@ override
DateTime ? get birthday ;
@ override
DateTime get createdAt ;
@ override
DateTime ? get deletedAt ;
@ override
int get experience ;
@ override
String get firstName ;
@ override
String get lastName ;
@ override
DateTime ? get lastSeenAt ;
@ override
DateTime get updatedAt ;
/// Create a copy of SnAccountProfile
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $SnAccountProfileImplCopyWith < _ $SnAccountProfileImpl > get copyWith = >
throw _privateConstructorUsedError ;
}
2024-11-30 14:39:49 +00:00
SnRelationship _ $SnRelationshipFromJson ( Map < String , dynamic > json ) {
return _SnRelationship . fromJson ( json ) ;
}
/// @nodoc
mixin _ $SnRelationship {
int get id = > throw _privateConstructorUsedError ;
DateTime get createdAt = > throw _privateConstructorUsedError ;
DateTime get updatedAt = > throw _privateConstructorUsedError ;
DateTime ? get deletedAt = > throw _privateConstructorUsedError ;
int get accountId = > throw _privateConstructorUsedError ;
int get relatedId = > throw _privateConstructorUsedError ;
SnAccount ? get account = > throw _privateConstructorUsedError ;
SnAccount ? get related = > throw _privateConstructorUsedError ;
int get status = > throw _privateConstructorUsedError ;
Map < String , dynamic > get permNodes = > throw _privateConstructorUsedError ;
/// Serializes this SnRelationship to a JSON map.
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
/// Create a copy of SnRelationship
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$SnRelationshipCopyWith < SnRelationship > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SnRelationshipCopyWith < $Res > {
factory $SnRelationshipCopyWith (
SnRelationship value , $Res Function ( SnRelationship ) then ) =
_ $SnRelationshipCopyWithImpl < $Res , SnRelationship > ;
@ useResult
$Res call (
{ int id ,
DateTime createdAt ,
DateTime updatedAt ,
DateTime ? deletedAt ,
int accountId ,
int relatedId ,
SnAccount ? account ,
SnAccount ? related ,
int status ,
Map < String , dynamic > permNodes } ) ;
$SnAccountCopyWith < $Res > ? get account ;
$SnAccountCopyWith < $Res > ? get related ;
}
/// @nodoc
class _ $SnRelationshipCopyWithImpl < $Res , $Val extends SnRelationship >
implements $SnRelationshipCopyWith < $Res > {
_ $SnRelationshipCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of SnRelationship
/// 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 ? accountId = null ,
Object ? relatedId = null ,
Object ? account = freezed ,
Object ? related = freezed ,
Object ? status = null ,
Object ? permNodes = 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 ? ,
accountId: null = = accountId
? _value . accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int ,
relatedId: null = = relatedId
? _value . relatedId
: relatedId // ignore: cast_nullable_to_non_nullable
as int ,
account: freezed = = account
? _value . account
: account // ignore: cast_nullable_to_non_nullable
as SnAccount ? ,
related: freezed = = related
? _value . related
: related // ignore: cast_nullable_to_non_nullable
as SnAccount ? ,
status: null = = status
? _value . status
: status // ignore: cast_nullable_to_non_nullable
as int ,
permNodes: null = = permNodes
? _value . permNodes
: permNodes // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
) as $Val ) ;
}
/// Create a copy of SnRelationship
/// 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 ) ;
} ) ;
}
/// Create a copy of SnRelationship
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$SnAccountCopyWith < $Res > ? get related {
if ( _value . related = = null ) {
return null ;
}
return $SnAccountCopyWith < $Res > ( _value . related ! , ( value ) {
return _then ( _value . copyWith ( related: value ) as $Val ) ;
} ) ;
}
}
/// @nodoc
abstract class _ $ $SnRelationshipImplCopyWith < $Res >
implements $SnRelationshipCopyWith < $Res > {
factory _ $ $SnRelationshipImplCopyWith ( _ $SnRelationshipImpl value ,
$Res Function ( _ $SnRelationshipImpl ) then ) =
__ $ $SnRelationshipImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ int id ,
DateTime createdAt ,
DateTime updatedAt ,
DateTime ? deletedAt ,
int accountId ,
int relatedId ,
SnAccount ? account ,
SnAccount ? related ,
int status ,
Map < String , dynamic > permNodes } ) ;
@ override
$SnAccountCopyWith < $Res > ? get account ;
@ override
$SnAccountCopyWith < $Res > ? get related ;
}
/// @nodoc
class __ $ $SnRelationshipImplCopyWithImpl < $Res >
extends _ $SnRelationshipCopyWithImpl < $Res , _ $SnRelationshipImpl >
implements _ $ $SnRelationshipImplCopyWith < $Res > {
__ $ $SnRelationshipImplCopyWithImpl (
_ $SnRelationshipImpl _value , $Res Function ( _ $SnRelationshipImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of SnRelationship
/// 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 ? accountId = null ,
Object ? relatedId = null ,
Object ? account = freezed ,
Object ? related = freezed ,
Object ? status = null ,
Object ? permNodes = null ,
} ) {
return _then ( _ $SnRelationshipImpl (
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 ? ,
accountId: null = = accountId
? _value . accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int ,
relatedId: null = = relatedId
? _value . relatedId
: relatedId // ignore: cast_nullable_to_non_nullable
as int ,
account: freezed = = account
? _value . account
: account // ignore: cast_nullable_to_non_nullable
as SnAccount ? ,
related: freezed = = related
? _value . related
: related // ignore: cast_nullable_to_non_nullable
as SnAccount ? ,
status: null = = status
? _value . status
: status // ignore: cast_nullable_to_non_nullable
as int ,
permNodes: null = = permNodes
? _value . _permNodes
: permNodes // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $SnRelationshipImpl implements _SnRelationship {
const _ $SnRelationshipImpl (
{ required this . id ,
required this . createdAt ,
required this . updatedAt ,
required this . deletedAt ,
required this . accountId ,
required this . relatedId ,
required this . account ,
required this . related ,
required this . status ,
final Map < String , dynamic > permNodes = const { } } )
: _permNodes = permNodes ;
factory _ $SnRelationshipImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $SnRelationshipImplFromJson ( json ) ;
@ override
final int id ;
@ override
final DateTime createdAt ;
@ override
final DateTime updatedAt ;
@ override
final DateTime ? deletedAt ;
@ override
final int accountId ;
@ override
final int relatedId ;
@ override
final SnAccount ? account ;
@ override
final SnAccount ? related ;
@ override
final int status ;
final Map < String , dynamic > _permNodes ;
@ override
@ JsonKey ( )
Map < String , dynamic > get permNodes {
if ( _permNodes is EqualUnmodifiableMapView ) return _permNodes ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView ( _permNodes ) ;
}
@ override
String toString ( ) {
return ' SnRelationship(id: $ id , createdAt: $ createdAt , updatedAt: $ updatedAt , deletedAt: $ deletedAt , accountId: $ accountId , relatedId: $ relatedId , account: $ account , related: $ related , status: $ status , permNodes: $ permNodes ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $SnRelationshipImpl & &
( 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 . accountId , accountId ) | |
other . accountId = = accountId ) & &
( identical ( other . relatedId , relatedId ) | |
other . relatedId = = relatedId ) & &
( identical ( other . account , account ) | | other . account = = account ) & &
( identical ( other . related , related ) | | other . related = = related ) & &
( identical ( other . status , status ) | | other . status = = status ) & &
const DeepCollectionEquality ( )
. equals ( other . _permNodes , _permNodes ) ) ;
}
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
int get hashCode = > Object . hash (
runtimeType ,
id ,
createdAt ,
updatedAt ,
deletedAt ,
accountId ,
relatedId ,
account ,
related ,
status ,
const DeepCollectionEquality ( ) . hash ( _permNodes ) ) ;
/// Create a copy of SnRelationship
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $SnRelationshipImplCopyWith < _ $SnRelationshipImpl > get copyWith = >
__ $ $SnRelationshipImplCopyWithImpl < _ $SnRelationshipImpl > (
this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $SnRelationshipImplToJson (
this ,
) ;
}
}
abstract class _SnRelationship implements SnRelationship {
const factory _SnRelationship (
{ required final int id ,
required final DateTime createdAt ,
required final DateTime updatedAt ,
required final DateTime ? deletedAt ,
required final int accountId ,
required final int relatedId ,
required final SnAccount ? account ,
required final SnAccount ? related ,
required final int status ,
final Map < String , dynamic > permNodes } ) = _ $SnRelationshipImpl ;
factory _SnRelationship . fromJson ( Map < String , dynamic > json ) =
_ $SnRelationshipImpl . fromJson ;
@ override
int get id ;
@ override
DateTime get createdAt ;
@ override
DateTime get updatedAt ;
@ override
DateTime ? get deletedAt ;
@ override
int get accountId ;
@ override
int get relatedId ;
@ override
SnAccount ? get account ;
@ override
SnAccount ? get related ;
@ override
int get status ;
@ override
Map < String , dynamic > get permNodes ;
/// Create a copy of SnRelationship
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $SnRelationshipImplCopyWith < _ $SnRelationshipImpl > get copyWith = >
throw _privateConstructorUsedError ;
}