2024-11-09 04:04:03 +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 ' attachment.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 ' ) ;
SnAttachment _ $SnAttachmentFromJson ( Map < String , dynamic > json ) {
return _SnAttachment . fromJson ( json ) ;
}
/// @nodoc
mixin _ $SnAttachment {
int get id = > throw _privateConstructorUsedError ;
DateTime get createdAt = > throw _privateConstructorUsedError ;
DateTime get updatedAt = > throw _privateConstructorUsedError ;
2024-12-28 09:19:20 +00:00
DateTime ? get deletedAt = > throw _privateConstructorUsedError ;
2024-11-09 04:04:03 +00:00
String get rid = > throw _privateConstructorUsedError ;
String get uuid = > throw _privateConstructorUsedError ;
int get size = > throw _privateConstructorUsedError ;
String get name = > throw _privateConstructorUsedError ;
String get alt = > throw _privateConstructorUsedError ;
String get mimetype = > throw _privateConstructorUsedError ;
String get hash = > throw _privateConstructorUsedError ;
int get destination = > throw _privateConstructorUsedError ;
int get refCount = > throw _privateConstructorUsedError ;
2024-12-26 14:19:01 +00:00
int get contentRating = > throw _privateConstructorUsedError ;
int get qualityRating = > throw _privateConstructorUsedError ;
2024-12-28 09:19:20 +00:00
DateTime ? get cleanedAt = > throw _privateConstructorUsedError ;
2024-11-09 04:04:03 +00:00
bool get isAnalyzed = > throw _privateConstructorUsedError ;
bool get isSelfRef = > throw _privateConstructorUsedError ;
2024-12-28 10:16:59 +00:00
bool get isIndexable = > throw _privateConstructorUsedError ;
2024-12-28 09:19:20 +00:00
SnAttachment ? get ref = > throw _privateConstructorUsedError ;
int ? get refId = > throw _privateConstructorUsedError ;
2024-11-09 04:04:03 +00:00
SnAttachmentPool ? get pool = > throw _privateConstructorUsedError ;
2024-12-28 18:13:31 +00:00
int ? get poolId = > throw _privateConstructorUsedError ;
2024-11-09 04:04:03 +00:00
int get accountId = > throw _privateConstructorUsedError ;
2024-12-28 09:19:20 +00:00
int ? get thumbnailId = > throw _privateConstructorUsedError ;
SnAttachment ? get thumbnail = > throw _privateConstructorUsedError ;
int ? get compressedId = > throw _privateConstructorUsedError ;
SnAttachment ? get compressed = > throw _privateConstructorUsedError ;
2024-12-28 18:13:31 +00:00
List < SnAttachmentBoost > get boosts = > throw _privateConstructorUsedError ;
2024-12-26 14:19:01 +00:00
Map < String , dynamic > get usermeta = > throw _privateConstructorUsedError ;
2024-11-10 08:41:11 +00:00
Map < String , dynamic > get metadata = > throw _privateConstructorUsedError ;
2024-11-09 04:04:03 +00:00
/// Serializes this SnAttachment to a JSON map.
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
/// Create a copy of SnAttachment
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$SnAttachmentCopyWith < SnAttachment > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SnAttachmentCopyWith < $Res > {
factory $SnAttachmentCopyWith (
SnAttachment value , $Res Function ( SnAttachment ) then ) =
_ $SnAttachmentCopyWithImpl < $Res , SnAttachment > ;
@ useResult
$Res call (
{ int id ,
DateTime createdAt ,
DateTime updatedAt ,
2024-12-28 09:19:20 +00:00
DateTime ? deletedAt ,
2024-11-09 04:04:03 +00:00
String rid ,
String uuid ,
int size ,
String name ,
String alt ,
String mimetype ,
String hash ,
int destination ,
int refCount ,
2024-12-26 14:19:01 +00:00
int contentRating ,
int qualityRating ,
2024-12-28 09:19:20 +00:00
DateTime ? cleanedAt ,
2024-11-09 04:04:03 +00:00
bool isAnalyzed ,
bool isSelfRef ,
2024-12-28 10:16:59 +00:00
bool isIndexable ,
2024-12-28 09:19:20 +00:00
SnAttachment ? ref ,
int ? refId ,
2024-11-09 04:04:03 +00:00
SnAttachmentPool ? pool ,
2024-12-28 18:13:31 +00:00
int ? poolId ,
2024-11-10 08:41:11 +00:00
int accountId ,
2024-12-28 09:19:20 +00:00
int ? thumbnailId ,
SnAttachment ? thumbnail ,
int ? compressedId ,
SnAttachment ? compressed ,
2024-12-28 18:13:31 +00:00
List < SnAttachmentBoost > boosts ,
2024-12-26 14:19:01 +00:00
Map < String , dynamic > usermeta ,
2024-12-28 09:19:20 +00:00
Map < String , dynamic > metadata } ) ;
2024-11-09 04:04:03 +00:00
2024-12-28 09:19:20 +00:00
$SnAttachmentCopyWith < $Res > ? get ref ;
2024-11-09 04:04:03 +00:00
$SnAttachmentPoolCopyWith < $Res > ? get pool ;
2024-12-28 09:19:20 +00:00
$SnAttachmentCopyWith < $Res > ? get thumbnail ;
$SnAttachmentCopyWith < $Res > ? get compressed ;
2024-11-09 04:04:03 +00:00
}
/// @nodoc
class _ $SnAttachmentCopyWithImpl < $Res , $Val extends SnAttachment >
implements $SnAttachmentCopyWith < $Res > {
_ $SnAttachmentCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of SnAttachment
/// 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 ? rid = null ,
Object ? uuid = null ,
Object ? size = null ,
Object ? name = null ,
Object ? alt = null ,
Object ? mimetype = null ,
Object ? hash = null ,
Object ? destination = null ,
Object ? refCount = null ,
2024-12-26 14:19:01 +00:00
Object ? contentRating = null ,
Object ? qualityRating = null ,
2024-11-09 04:04:03 +00:00
Object ? cleanedAt = freezed ,
Object ? isAnalyzed = null ,
Object ? isSelfRef = null ,
2024-12-28 10:16:59 +00:00
Object ? isIndexable = null ,
2024-11-09 04:04:03 +00:00
Object ? ref = freezed ,
Object ? refId = freezed ,
Object ? pool = freezed ,
2024-12-28 18:13:31 +00:00
Object ? poolId = freezed ,
2024-11-09 04:04:03 +00:00
Object ? accountId = null ,
2024-12-28 09:19:20 +00:00
Object ? thumbnailId = freezed ,
Object ? thumbnail = freezed ,
Object ? compressedId = freezed ,
Object ? compressed = freezed ,
2024-12-28 18:13:31 +00:00
Object ? boosts = null ,
2024-12-26 14:19:01 +00:00
Object ? usermeta = null ,
2024-11-10 08:41:11 +00:00
Object ? metadata = null ,
2024-11-09 04:04:03 +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
2024-12-28 09:19:20 +00:00
as DateTime ? ,
2024-11-09 04:04:03 +00:00
rid: null = = rid
? _value . rid
: rid // ignore: cast_nullable_to_non_nullable
as String ,
uuid: null = = uuid
? _value . uuid
: uuid // ignore: cast_nullable_to_non_nullable
as String ,
size: null = = size
? _value . size
: size // ignore: cast_nullable_to_non_nullable
as int ,
name: null = = name
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
alt: null = = alt
? _value . alt
: alt // ignore: cast_nullable_to_non_nullable
as String ,
mimetype: null = = mimetype
? _value . mimetype
: mimetype // ignore: cast_nullable_to_non_nullable
as String ,
hash: null = = hash
? _value . hash
: hash // ignore: cast_nullable_to_non_nullable
as String ,
destination: null = = destination
? _value . destination
: destination // ignore: cast_nullable_to_non_nullable
as int ,
refCount: null = = refCount
? _value . refCount
: refCount // ignore: cast_nullable_to_non_nullable
as int ,
2024-12-26 14:19:01 +00:00
contentRating: null = = contentRating
? _value . contentRating
: contentRating // ignore: cast_nullable_to_non_nullable
as int ,
qualityRating: null = = qualityRating
? _value . qualityRating
: qualityRating // ignore: cast_nullable_to_non_nullable
as int ,
2024-11-09 04:04:03 +00:00
cleanedAt: freezed = = cleanedAt
? _value . cleanedAt
: cleanedAt // ignore: cast_nullable_to_non_nullable
2024-12-28 09:19:20 +00:00
as DateTime ? ,
2024-11-09 04:04:03 +00:00
isAnalyzed: null = = isAnalyzed
? _value . isAnalyzed
: isAnalyzed // ignore: cast_nullable_to_non_nullable
as bool ,
isSelfRef: null = = isSelfRef
? _value . isSelfRef
: isSelfRef // ignore: cast_nullable_to_non_nullable
as bool ,
2024-12-28 10:16:59 +00:00
isIndexable: null = = isIndexable
? _value . isIndexable
: isIndexable // ignore: cast_nullable_to_non_nullable
as bool ,
2024-11-09 04:04:03 +00:00
ref: freezed = = ref
? _value . ref
: ref // ignore: cast_nullable_to_non_nullable
2024-12-28 09:19:20 +00:00
as SnAttachment ? ,
2024-11-09 04:04:03 +00:00
refId: freezed = = refId
? _value . refId
: refId // ignore: cast_nullable_to_non_nullable
2024-12-28 09:19:20 +00:00
as int ? ,
2024-11-09 04:04:03 +00:00
pool: freezed = = pool
? _value . pool
: pool // ignore: cast_nullable_to_non_nullable
as SnAttachmentPool ? ,
2024-12-28 18:13:31 +00:00
poolId: freezed = = poolId
2024-11-09 04:04:03 +00:00
? _value . poolId
: poolId // ignore: cast_nullable_to_non_nullable
2024-12-28 18:13:31 +00:00
as int ? ,
2024-11-09 04:04:03 +00:00
accountId: null = = accountId
? _value . accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int ,
2024-12-28 09:19:20 +00:00
thumbnailId: freezed = = thumbnailId
? _value . thumbnailId
: thumbnailId // ignore: cast_nullable_to_non_nullable
as int ? ,
thumbnail: freezed = = thumbnail
? _value . thumbnail
: thumbnail // ignore: cast_nullable_to_non_nullable
as SnAttachment ? ,
compressedId: freezed = = compressedId
? _value . compressedId
: compressedId // ignore: cast_nullable_to_non_nullable
as int ? ,
compressed: freezed = = compressed
? _value . compressed
: compressed // ignore: cast_nullable_to_non_nullable
as SnAttachment ? ,
2024-12-28 18:13:31 +00:00
boosts: null = = boosts
? _value . boosts
: boosts // ignore: cast_nullable_to_non_nullable
as List < SnAttachmentBoost > ,
2024-12-26 14:19:01 +00:00
usermeta: null = = usermeta
? _value . usermeta
: usermeta // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
2024-11-10 08:41:11 +00:00
metadata: null = = metadata
? _value . metadata
: metadata // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
2024-11-09 04:04:03 +00:00
) as $Val ) ;
}
2024-12-28 09:19:20 +00:00
/// Create a copy of SnAttachment
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$SnAttachmentCopyWith < $Res > ? get ref {
if ( _value . ref = = null ) {
return null ;
}
return $SnAttachmentCopyWith < $Res > ( _value . ref ! , ( value ) {
return _then ( _value . copyWith ( ref: value ) as $Val ) ;
} ) ;
}
2024-11-09 04:04:03 +00:00
/// Create a copy of SnAttachment
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$SnAttachmentPoolCopyWith < $Res > ? get pool {
if ( _value . pool = = null ) {
return null ;
}
return $SnAttachmentPoolCopyWith < $Res > ( _value . pool ! , ( value ) {
return _then ( _value . copyWith ( pool: value ) as $Val ) ;
} ) ;
}
2024-12-28 09:19:20 +00:00
/// Create a copy of SnAttachment
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$SnAttachmentCopyWith < $Res > ? get thumbnail {
if ( _value . thumbnail = = null ) {
return null ;
}
return $SnAttachmentCopyWith < $Res > ( _value . thumbnail ! , ( value ) {
return _then ( _value . copyWith ( thumbnail: value ) as $Val ) ;
} ) ;
}
/// Create a copy of SnAttachment
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$SnAttachmentCopyWith < $Res > ? get compressed {
if ( _value . compressed = = null ) {
return null ;
}
return $SnAttachmentCopyWith < $Res > ( _value . compressed ! , ( value ) {
return _then ( _value . copyWith ( compressed: value ) as $Val ) ;
} ) ;
}
2024-11-09 04:04:03 +00:00
}
/// @nodoc
abstract class _ $ $SnAttachmentImplCopyWith < $Res >
implements $SnAttachmentCopyWith < $Res > {
factory _ $ $SnAttachmentImplCopyWith (
_ $SnAttachmentImpl value , $Res Function ( _ $SnAttachmentImpl ) then ) =
__ $ $SnAttachmentImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ int id ,
DateTime createdAt ,
DateTime updatedAt ,
2024-12-28 09:19:20 +00:00
DateTime ? deletedAt ,
2024-11-09 04:04:03 +00:00
String rid ,
String uuid ,
int size ,
String name ,
String alt ,
String mimetype ,
String hash ,
int destination ,
int refCount ,
2024-12-26 14:19:01 +00:00
int contentRating ,
int qualityRating ,
2024-12-28 09:19:20 +00:00
DateTime ? cleanedAt ,
2024-11-09 04:04:03 +00:00
bool isAnalyzed ,
bool isSelfRef ,
2024-12-28 10:16:59 +00:00
bool isIndexable ,
2024-12-28 09:19:20 +00:00
SnAttachment ? ref ,
int ? refId ,
2024-11-09 04:04:03 +00:00
SnAttachmentPool ? pool ,
2024-12-28 18:13:31 +00:00
int ? poolId ,
2024-11-10 08:41:11 +00:00
int accountId ,
2024-12-28 09:19:20 +00:00
int ? thumbnailId ,
SnAttachment ? thumbnail ,
int ? compressedId ,
SnAttachment ? compressed ,
2024-12-28 18:13:31 +00:00
List < SnAttachmentBoost > boosts ,
2024-12-26 14:19:01 +00:00
Map < String , dynamic > usermeta ,
2024-12-28 09:19:20 +00:00
Map < String , dynamic > metadata } ) ;
2024-11-09 04:04:03 +00:00
2024-12-28 09:19:20 +00:00
@ override
$SnAttachmentCopyWith < $Res > ? get ref ;
2024-11-09 04:04:03 +00:00
@ override
$SnAttachmentPoolCopyWith < $Res > ? get pool ;
2024-12-28 09:19:20 +00:00
@ override
$SnAttachmentCopyWith < $Res > ? get thumbnail ;
@ override
$SnAttachmentCopyWith < $Res > ? get compressed ;
2024-11-09 04:04:03 +00:00
}
/// @nodoc
class __ $ $SnAttachmentImplCopyWithImpl < $Res >
extends _ $SnAttachmentCopyWithImpl < $Res , _ $SnAttachmentImpl >
implements _ $ $SnAttachmentImplCopyWith < $Res > {
__ $ $SnAttachmentImplCopyWithImpl (
_ $SnAttachmentImpl _value , $Res Function ( _ $SnAttachmentImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of SnAttachment
/// 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 ? rid = null ,
Object ? uuid = null ,
Object ? size = null ,
Object ? name = null ,
Object ? alt = null ,
Object ? mimetype = null ,
Object ? hash = null ,
Object ? destination = null ,
Object ? refCount = null ,
2024-12-26 14:19:01 +00:00
Object ? contentRating = null ,
Object ? qualityRating = null ,
2024-11-09 04:04:03 +00:00
Object ? cleanedAt = freezed ,
Object ? isAnalyzed = null ,
Object ? isSelfRef = null ,
2024-12-28 10:16:59 +00:00
Object ? isIndexable = null ,
2024-11-09 04:04:03 +00:00
Object ? ref = freezed ,
Object ? refId = freezed ,
Object ? pool = freezed ,
2024-12-28 18:13:31 +00:00
Object ? poolId = freezed ,
2024-11-09 04:04:03 +00:00
Object ? accountId = null ,
2024-12-28 09:19:20 +00:00
Object ? thumbnailId = freezed ,
Object ? thumbnail = freezed ,
Object ? compressedId = freezed ,
Object ? compressed = freezed ,
2024-12-28 18:13:31 +00:00
Object ? boosts = null ,
2024-12-26 14:19:01 +00:00
Object ? usermeta = null ,
2024-11-10 08:41:11 +00:00
Object ? metadata = null ,
2024-11-09 04:04:03 +00:00
} ) {
return _then ( _ $SnAttachmentImpl (
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
2024-12-28 09:19:20 +00:00
as DateTime ? ,
2024-11-09 04:04:03 +00:00
rid: null = = rid
? _value . rid
: rid // ignore: cast_nullable_to_non_nullable
as String ,
uuid: null = = uuid
? _value . uuid
: uuid // ignore: cast_nullable_to_non_nullable
as String ,
size: null = = size
? _value . size
: size // ignore: cast_nullable_to_non_nullable
as int ,
name: null = = name
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
alt: null = = alt
? _value . alt
: alt // ignore: cast_nullable_to_non_nullable
as String ,
mimetype: null = = mimetype
? _value . mimetype
: mimetype // ignore: cast_nullable_to_non_nullable
as String ,
hash: null = = hash
? _value . hash
: hash // ignore: cast_nullable_to_non_nullable
as String ,
destination: null = = destination
? _value . destination
: destination // ignore: cast_nullable_to_non_nullable
as int ,
refCount: null = = refCount
? _value . refCount
: refCount // ignore: cast_nullable_to_non_nullable
as int ,
2024-12-26 14:19:01 +00:00
contentRating: null = = contentRating
? _value . contentRating
: contentRating // ignore: cast_nullable_to_non_nullable
as int ,
qualityRating: null = = qualityRating
? _value . qualityRating
: qualityRating // ignore: cast_nullable_to_non_nullable
as int ,
2024-11-09 04:04:03 +00:00
cleanedAt: freezed = = cleanedAt
? _value . cleanedAt
: cleanedAt // ignore: cast_nullable_to_non_nullable
2024-12-28 09:19:20 +00:00
as DateTime ? ,
2024-11-09 04:04:03 +00:00
isAnalyzed: null = = isAnalyzed
? _value . isAnalyzed
: isAnalyzed // ignore: cast_nullable_to_non_nullable
as bool ,
isSelfRef: null = = isSelfRef
? _value . isSelfRef
: isSelfRef // ignore: cast_nullable_to_non_nullable
as bool ,
2024-12-28 10:16:59 +00:00
isIndexable: null = = isIndexable
? _value . isIndexable
: isIndexable // ignore: cast_nullable_to_non_nullable
as bool ,
2024-11-09 04:04:03 +00:00
ref: freezed = = ref
? _value . ref
: ref // ignore: cast_nullable_to_non_nullable
2024-12-28 09:19:20 +00:00
as SnAttachment ? ,
2024-11-09 04:04:03 +00:00
refId: freezed = = refId
? _value . refId
: refId // ignore: cast_nullable_to_non_nullable
2024-12-28 09:19:20 +00:00
as int ? ,
2024-11-09 04:04:03 +00:00
pool: freezed = = pool
? _value . pool
: pool // ignore: cast_nullable_to_non_nullable
as SnAttachmentPool ? ,
2024-12-28 18:13:31 +00:00
poolId: freezed = = poolId
2024-11-09 04:04:03 +00:00
? _value . poolId
: poolId // ignore: cast_nullable_to_non_nullable
2024-12-28 18:13:31 +00:00
as int ? ,
2024-11-09 04:04:03 +00:00
accountId: null = = accountId
? _value . accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int ,
2024-12-28 09:19:20 +00:00
thumbnailId: freezed = = thumbnailId
? _value . thumbnailId
: thumbnailId // ignore: cast_nullable_to_non_nullable
as int ? ,
thumbnail: freezed = = thumbnail
? _value . thumbnail
: thumbnail // ignore: cast_nullable_to_non_nullable
as SnAttachment ? ,
compressedId: freezed = = compressedId
? _value . compressedId
: compressedId // ignore: cast_nullable_to_non_nullable
as int ? ,
compressed: freezed = = compressed
? _value . compressed
: compressed // ignore: cast_nullable_to_non_nullable
as SnAttachment ? ,
2024-12-28 18:13:31 +00:00
boosts: null = = boosts
? _value . _boosts
: boosts // ignore: cast_nullable_to_non_nullable
as List < SnAttachmentBoost > ,
2024-12-26 14:19:01 +00:00
usermeta: null = = usermeta
? _value . _usermeta
: usermeta // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
2024-11-10 08:41:11 +00:00
metadata: null = = metadata
? _value . _metadata
: metadata // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
2024-11-09 04:04:03 +00:00
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2024-12-26 14:19:01 +00:00
class _ $SnAttachmentImpl extends _SnAttachment {
2024-11-09 04:04:03 +00:00
const _ $SnAttachmentImpl (
{ required this . id ,
required this . createdAt ,
required this . updatedAt ,
required this . deletedAt ,
required this . rid ,
required this . uuid ,
required this . size ,
required this . name ,
required this . alt ,
required this . mimetype ,
required this . hash ,
required this . destination ,
required this . refCount ,
2024-12-26 14:19:01 +00:00
this . contentRating = 0 ,
this . qualityRating = 0 ,
2024-11-09 04:04:03 +00:00
required this . cleanedAt ,
required this . isAnalyzed ,
required this . isSelfRef ,
2024-12-28 10:16:59 +00:00
required this . isIndexable ,
2024-11-09 04:04:03 +00:00
required this . ref ,
required this . refId ,
required this . pool ,
required this . poolId ,
2024-11-10 08:41:11 +00:00
required this . accountId ,
2024-12-28 09:19:20 +00:00
this . thumbnailId ,
this . thumbnail ,
this . compressedId ,
this . compressed ,
2024-12-28 18:13:31 +00:00
final List < SnAttachmentBoost > boosts = const [ ] ,
2024-12-26 14:19:01 +00:00
final Map < String , dynamic > usermeta = const { } ,
2024-12-28 09:19:20 +00:00
final Map < String , dynamic > metadata = const { } } )
2024-12-28 18:13:31 +00:00
: _boosts = boosts ,
_usermeta = usermeta ,
2024-12-26 14:19:01 +00:00
_metadata = metadata ,
super . _ ( ) ;
2024-11-09 04:04:03 +00:00
factory _ $SnAttachmentImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $SnAttachmentImplFromJson ( json ) ;
@ override
final int id ;
@ override
final DateTime createdAt ;
@ override
final DateTime updatedAt ;
@ override
2024-12-28 09:19:20 +00:00
final DateTime ? deletedAt ;
2024-11-09 04:04:03 +00:00
@ override
final String rid ;
@ override
final String uuid ;
@ override
final int size ;
@ override
final String name ;
@ override
final String alt ;
@ override
final String mimetype ;
@ override
final String hash ;
@ override
final int destination ;
@ override
final int refCount ;
@ override
2024-12-26 14:19:01 +00:00
@ JsonKey ( )
final int contentRating ;
@ override
@ JsonKey ( )
final int qualityRating ;
@ override
2024-12-28 09:19:20 +00:00
final DateTime ? cleanedAt ;
2024-11-09 04:04:03 +00:00
@ override
final bool isAnalyzed ;
@ override
final bool isSelfRef ;
@ override
2024-12-28 10:16:59 +00:00
final bool isIndexable ;
@ override
2024-12-28 09:19:20 +00:00
final SnAttachment ? ref ;
2024-11-09 04:04:03 +00:00
@ override
2024-12-28 09:19:20 +00:00
final int ? refId ;
2024-11-09 04:04:03 +00:00
@ override
final SnAttachmentPool ? pool ;
@ override
2024-12-28 18:13:31 +00:00
final int ? poolId ;
2024-11-09 04:04:03 +00:00
@ override
final int accountId ;
2024-12-28 09:19:20 +00:00
@ override
final int ? thumbnailId ;
@ override
final SnAttachment ? thumbnail ;
@ override
final int ? compressedId ;
@ override
final SnAttachment ? compressed ;
2024-12-28 18:13:31 +00:00
final List < SnAttachmentBoost > _boosts ;
@ override
@ JsonKey ( )
List < SnAttachmentBoost > get boosts {
if ( _boosts is EqualUnmodifiableListView ) return _boosts ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _boosts ) ;
}
2024-12-26 14:19:01 +00:00
final Map < String , dynamic > _usermeta ;
@ override
@ JsonKey ( )
Map < String , dynamic > get usermeta {
if ( _usermeta is EqualUnmodifiableMapView ) return _usermeta ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView ( _usermeta ) ;
}
2024-11-10 08:41:11 +00:00
final Map < String , dynamic > _metadata ;
@ override
@ JsonKey ( )
Map < String , dynamic > get metadata {
if ( _metadata is EqualUnmodifiableMapView ) return _metadata ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView ( _metadata ) ;
}
2024-11-09 04:04:03 +00:00
@ override
String toString ( ) {
2024-12-28 18:13:31 +00:00
return ' SnAttachment(id: $ id , createdAt: $ createdAt , updatedAt: $ updatedAt , deletedAt: $ deletedAt , rid: $ rid , uuid: $ uuid , size: $ size , name: $ name , alt: $ alt , mimetype: $ mimetype , hash: $ hash , destination: $ destination , refCount: $ refCount , contentRating: $ contentRating , qualityRating: $ qualityRating , cleanedAt: $ cleanedAt , isAnalyzed: $ isAnalyzed , isSelfRef: $ isSelfRef , isIndexable: $ isIndexable , ref: $ ref , refId: $ refId , pool: $ pool , poolId: $ poolId , accountId: $ accountId , thumbnailId: $ thumbnailId , thumbnail: $ thumbnail , compressedId: $ compressedId , compressed: $ compressed , boosts: $ boosts , usermeta: $ usermeta , metadata: $ metadata ) ' ;
2024-11-09 04:04:03 +00:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $SnAttachmentImpl & &
( identical ( other . id , id ) | | other . id = = id ) & &
( identical ( other . createdAt , createdAt ) | |
other . createdAt = = createdAt ) & &
( identical ( other . updatedAt , updatedAt ) | |
other . updatedAt = = updatedAt ) & &
2024-12-28 09:19:20 +00:00
( identical ( other . deletedAt , deletedAt ) | |
other . deletedAt = = deletedAt ) & &
2024-11-09 04:04:03 +00:00
( identical ( other . rid , rid ) | | other . rid = = rid ) & &
( identical ( other . uuid , uuid ) | | other . uuid = = uuid ) & &
( identical ( other . size , size ) | | other . size = = size ) & &
( identical ( other . name , name ) | | other . name = = name ) & &
( identical ( other . alt , alt ) | | other . alt = = alt ) & &
( identical ( other . mimetype , mimetype ) | |
other . mimetype = = mimetype ) & &
( identical ( other . hash , hash ) | | other . hash = = hash ) & &
( identical ( other . destination , destination ) | |
other . destination = = destination ) & &
( identical ( other . refCount , refCount ) | |
other . refCount = = refCount ) & &
2024-12-26 14:19:01 +00:00
( identical ( other . contentRating , contentRating ) | |
other . contentRating = = contentRating ) & &
( identical ( other . qualityRating , qualityRating ) | |
other . qualityRating = = qualityRating ) & &
2024-12-28 09:19:20 +00:00
( identical ( other . cleanedAt , cleanedAt ) | |
other . cleanedAt = = cleanedAt ) & &
2024-11-09 04:04:03 +00:00
( identical ( other . isAnalyzed , isAnalyzed ) | |
other . isAnalyzed = = isAnalyzed ) & &
( identical ( other . isSelfRef , isSelfRef ) | |
other . isSelfRef = = isSelfRef ) & &
2024-12-28 10:16:59 +00:00
( identical ( other . isIndexable , isIndexable ) | |
other . isIndexable = = isIndexable ) & &
2024-12-28 09:19:20 +00:00
( identical ( other . ref , ref ) | | other . ref = = ref ) & &
( identical ( other . refId , refId ) | | other . refId = = refId ) & &
2024-11-09 04:04:03 +00:00
( identical ( other . pool , pool ) | | other . pool = = pool ) & &
( identical ( other . poolId , poolId ) | | other . poolId = = poolId ) & &
( identical ( other . accountId , accountId ) | |
2024-11-10 08:41:11 +00:00
other . accountId = = accountId ) & &
2024-12-28 09:19:20 +00:00
( identical ( other . thumbnailId , thumbnailId ) | |
other . thumbnailId = = thumbnailId ) & &
2024-12-26 15:01:00 +00:00
( identical ( other . thumbnail , thumbnail ) | |
2024-12-28 09:19:20 +00:00
other . thumbnail = = thumbnail ) & &
( identical ( other . compressedId , compressedId ) | |
other . compressedId = = compressedId ) & &
( identical ( other . compressed , compressed ) | |
other . compressed = = compressed ) & &
2024-12-28 18:13:31 +00:00
const DeepCollectionEquality ( ) . equals ( other . _boosts , _boosts ) & &
2024-12-28 09:19:20 +00:00
const DeepCollectionEquality ( ) . equals ( other . _usermeta , _usermeta ) & &
const DeepCollectionEquality ( ) . equals ( other . _metadata , _metadata ) ) ;
2024-11-09 04:04:03 +00:00
}
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
int get hashCode = > Object . hashAll ( [
runtimeType ,
id ,
createdAt ,
updatedAt ,
2024-12-28 09:19:20 +00:00
deletedAt ,
2024-11-09 04:04:03 +00:00
rid ,
uuid ,
size ,
name ,
alt ,
mimetype ,
hash ,
destination ,
refCount ,
2024-12-26 14:19:01 +00:00
contentRating ,
qualityRating ,
2024-12-28 09:19:20 +00:00
cleanedAt ,
2024-11-09 04:04:03 +00:00
isAnalyzed ,
isSelfRef ,
2024-12-28 10:16:59 +00:00
isIndexable ,
2024-12-28 09:19:20 +00:00
ref ,
refId ,
2024-11-09 04:04:03 +00:00
pool ,
poolId ,
2024-11-10 08:41:11 +00:00
accountId ,
2024-12-28 09:19:20 +00:00
thumbnailId ,
thumbnail ,
compressedId ,
compressed ,
2024-12-28 18:13:31 +00:00
const DeepCollectionEquality ( ) . hash ( _boosts ) ,
2024-12-26 14:19:01 +00:00
const DeepCollectionEquality ( ) . hash ( _usermeta ) ,
2024-12-28 09:19:20 +00:00
const DeepCollectionEquality ( ) . hash ( _metadata )
2024-11-09 04:04:03 +00:00
] ) ;
/// Create a copy of SnAttachment
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $SnAttachmentImplCopyWith < _ $SnAttachmentImpl > get copyWith = >
__ $ $SnAttachmentImplCopyWithImpl < _ $SnAttachmentImpl > ( this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $SnAttachmentImplToJson (
this ,
) ;
}
}
2024-12-26 14:19:01 +00:00
abstract class _SnAttachment extends SnAttachment {
2024-11-09 04:04:03 +00:00
const factory _SnAttachment (
{ required final int id ,
required final DateTime createdAt ,
required final DateTime updatedAt ,
2024-12-28 09:19:20 +00:00
required final DateTime ? deletedAt ,
2024-11-09 04:04:03 +00:00
required final String rid ,
required final String uuid ,
required final int size ,
required final String name ,
required final String alt ,
required final String mimetype ,
required final String hash ,
required final int destination ,
required final int refCount ,
2024-12-26 14:19:01 +00:00
final int contentRating ,
final int qualityRating ,
2024-12-28 09:19:20 +00:00
required final DateTime ? cleanedAt ,
2024-11-09 04:04:03 +00:00
required final bool isAnalyzed ,
required final bool isSelfRef ,
2024-12-28 10:16:59 +00:00
required final bool isIndexable ,
2024-12-28 09:19:20 +00:00
required final SnAttachment ? ref ,
required final int ? refId ,
2024-11-09 04:04:03 +00:00
required final SnAttachmentPool ? pool ,
2024-12-28 18:13:31 +00:00
required final int ? poolId ,
2024-11-10 08:41:11 +00:00
required final int accountId ,
2024-12-28 09:19:20 +00:00
final int ? thumbnailId ,
final SnAttachment ? thumbnail ,
final int ? compressedId ,
final SnAttachment ? compressed ,
2024-12-28 18:13:31 +00:00
final List < SnAttachmentBoost > boosts ,
2024-12-26 14:19:01 +00:00
final Map < String , dynamic > usermeta ,
2024-12-28 09:19:20 +00:00
final Map < String , dynamic > metadata } ) = _ $SnAttachmentImpl ;
2024-12-26 14:19:01 +00:00
const _SnAttachment . _ ( ) : super . _ ( ) ;
2024-11-09 04:04:03 +00:00
factory _SnAttachment . fromJson ( Map < String , dynamic > json ) =
_ $SnAttachmentImpl . fromJson ;
@ override
int get id ;
@ override
DateTime get createdAt ;
@ override
DateTime get updatedAt ;
@ override
2024-12-28 09:19:20 +00:00
DateTime ? get deletedAt ;
2024-11-09 04:04:03 +00:00
@ override
String get rid ;
@ override
String get uuid ;
@ override
int get size ;
@ override
String get name ;
@ override
String get alt ;
@ override
String get mimetype ;
@ override
String get hash ;
@ override
int get destination ;
@ override
int get refCount ;
@ override
2024-12-26 14:19:01 +00:00
int get contentRating ;
@ override
int get qualityRating ;
@ override
2024-12-28 09:19:20 +00:00
DateTime ? get cleanedAt ;
2024-11-09 04:04:03 +00:00
@ override
bool get isAnalyzed ;
@ override
bool get isSelfRef ;
@ override
2024-12-28 10:16:59 +00:00
bool get isIndexable ;
@ override
2024-12-28 09:19:20 +00:00
SnAttachment ? get ref ;
2024-11-09 04:04:03 +00:00
@ override
2024-12-28 09:19:20 +00:00
int ? get refId ;
2024-11-09 04:04:03 +00:00
@ override
SnAttachmentPool ? get pool ;
@ override
2024-12-28 18:13:31 +00:00
int ? get poolId ;
2024-11-09 04:04:03 +00:00
@ override
int get accountId ;
2024-11-10 08:41:11 +00:00
@ override
2024-12-28 09:19:20 +00:00
int ? get thumbnailId ;
@ override
SnAttachment ? get thumbnail ;
@ override
int ? get compressedId ;
@ override
SnAttachment ? get compressed ;
@ override
2024-12-28 18:13:31 +00:00
List < SnAttachmentBoost > get boosts ;
@ override
2024-12-26 14:19:01 +00:00
Map < String , dynamic > get usermeta ;
@ override
2024-11-10 08:41:11 +00:00
Map < String , dynamic > get metadata ;
2024-11-09 04:04:03 +00:00
/// Create a copy of SnAttachment
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $SnAttachmentImplCopyWith < _ $SnAttachmentImpl > get copyWith = >
throw _privateConstructorUsedError ;
}
2024-12-28 09:19:20 +00:00
SnAttachmentFragment _ $SnAttachmentFragmentFromJson ( Map < String , dynamic > json ) {
return _SnAttachmentFragment . fromJson ( json ) ;
}
/// @nodoc
mixin _ $SnAttachmentFragment {
int get id = > throw _privateConstructorUsedError ;
DateTime get createdAt = > throw _privateConstructorUsedError ;
DateTime get updatedAt = > throw _privateConstructorUsedError ;
DateTime ? get deletedAt = > throw _privateConstructorUsedError ;
String get rid = > throw _privateConstructorUsedError ;
String get uuid = > throw _privateConstructorUsedError ;
int get size = > throw _privateConstructorUsedError ;
String get name = > throw _privateConstructorUsedError ;
String get alt = > throw _privateConstructorUsedError ;
String get mimetype = > throw _privateConstructorUsedError ;
String get hash = > throw _privateConstructorUsedError ;
String ? get fingerprint = > throw _privateConstructorUsedError ;
Map < String , int > get fileChunks = > throw _privateConstructorUsedError ;
List < String > get fileChunksMissing = > throw _privateConstructorUsedError ;
/// Serializes this SnAttachmentFragment to a JSON map.
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
/// Create a copy of SnAttachmentFragment
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$SnAttachmentFragmentCopyWith < SnAttachmentFragment > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SnAttachmentFragmentCopyWith < $Res > {
factory $SnAttachmentFragmentCopyWith ( SnAttachmentFragment value ,
$Res Function ( SnAttachmentFragment ) then ) =
_ $SnAttachmentFragmentCopyWithImpl < $Res , SnAttachmentFragment > ;
@ useResult
$Res call (
{ int id ,
DateTime createdAt ,
DateTime updatedAt ,
DateTime ? deletedAt ,
String rid ,
String uuid ,
int size ,
String name ,
String alt ,
String mimetype ,
String hash ,
String ? fingerprint ,
Map < String , int > fileChunks ,
List < String > fileChunksMissing } ) ;
}
/// @nodoc
class _ $SnAttachmentFragmentCopyWithImpl < $Res ,
$Val extends SnAttachmentFragment >
implements $SnAttachmentFragmentCopyWith < $Res > {
_ $SnAttachmentFragmentCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of SnAttachmentFragment
/// 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 ? rid = null ,
Object ? uuid = null ,
Object ? size = null ,
Object ? name = null ,
Object ? alt = null ,
Object ? mimetype = null ,
Object ? hash = null ,
Object ? fingerprint = freezed ,
Object ? fileChunks = null ,
Object ? fileChunksMissing = 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 ? ,
rid: null = = rid
? _value . rid
: rid // ignore: cast_nullable_to_non_nullable
as String ,
uuid: null = = uuid
? _value . uuid
: uuid // ignore: cast_nullable_to_non_nullable
as String ,
size: null = = size
? _value . size
: size // ignore: cast_nullable_to_non_nullable
as int ,
name: null = = name
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
alt: null = = alt
? _value . alt
: alt // ignore: cast_nullable_to_non_nullable
as String ,
mimetype: null = = mimetype
? _value . mimetype
: mimetype // ignore: cast_nullable_to_non_nullable
as String ,
hash: null = = hash
? _value . hash
: hash // ignore: cast_nullable_to_non_nullable
as String ,
fingerprint: freezed = = fingerprint
? _value . fingerprint
: fingerprint // ignore: cast_nullable_to_non_nullable
as String ? ,
fileChunks: null = = fileChunks
? _value . fileChunks
: fileChunks // ignore: cast_nullable_to_non_nullable
as Map < String , int > ,
fileChunksMissing: null = = fileChunksMissing
? _value . fileChunksMissing
: fileChunksMissing // ignore: cast_nullable_to_non_nullable
as List < String > ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $SnAttachmentFragmentImplCopyWith < $Res >
implements $SnAttachmentFragmentCopyWith < $Res > {
factory _ $ $SnAttachmentFragmentImplCopyWith ( _ $SnAttachmentFragmentImpl value ,
$Res Function ( _ $SnAttachmentFragmentImpl ) then ) =
__ $ $SnAttachmentFragmentImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ int id ,
DateTime createdAt ,
DateTime updatedAt ,
DateTime ? deletedAt ,
String rid ,
String uuid ,
int size ,
String name ,
String alt ,
String mimetype ,
String hash ,
String ? fingerprint ,
Map < String , int > fileChunks ,
List < String > fileChunksMissing } ) ;
}
/// @nodoc
class __ $ $SnAttachmentFragmentImplCopyWithImpl < $Res >
extends _ $SnAttachmentFragmentCopyWithImpl < $Res , _ $SnAttachmentFragmentImpl >
implements _ $ $SnAttachmentFragmentImplCopyWith < $Res > {
__ $ $SnAttachmentFragmentImplCopyWithImpl ( _ $SnAttachmentFragmentImpl _value ,
$Res Function ( _ $SnAttachmentFragmentImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of SnAttachmentFragment
/// 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 ? rid = null ,
Object ? uuid = null ,
Object ? size = null ,
Object ? name = null ,
Object ? alt = null ,
Object ? mimetype = null ,
Object ? hash = null ,
Object ? fingerprint = freezed ,
Object ? fileChunks = null ,
Object ? fileChunksMissing = null ,
} ) {
return _then ( _ $SnAttachmentFragmentImpl (
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 ? ,
rid: null = = rid
? _value . rid
: rid // ignore: cast_nullable_to_non_nullable
as String ,
uuid: null = = uuid
? _value . uuid
: uuid // ignore: cast_nullable_to_non_nullable
as String ,
size: null = = size
? _value . size
: size // ignore: cast_nullable_to_non_nullable
as int ,
name: null = = name
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ,
alt: null = = alt
? _value . alt
: alt // ignore: cast_nullable_to_non_nullable
as String ,
mimetype: null = = mimetype
? _value . mimetype
: mimetype // ignore: cast_nullable_to_non_nullable
as String ,
hash: null = = hash
? _value . hash
: hash // ignore: cast_nullable_to_non_nullable
as String ,
fingerprint: freezed = = fingerprint
? _value . fingerprint
: fingerprint // ignore: cast_nullable_to_non_nullable
as String ? ,
fileChunks: null = = fileChunks
? _value . _fileChunks
: fileChunks // ignore: cast_nullable_to_non_nullable
as Map < String , int > ,
fileChunksMissing: null = = fileChunksMissing
? _value . _fileChunksMissing
: fileChunksMissing // ignore: cast_nullable_to_non_nullable
as List < String > ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $SnAttachmentFragmentImpl extends _SnAttachmentFragment {
const _ $SnAttachmentFragmentImpl (
{ required this . id ,
required this . createdAt ,
required this . updatedAt ,
required this . deletedAt ,
required this . rid ,
required this . uuid ,
required this . size ,
required this . name ,
required this . alt ,
required this . mimetype ,
required this . hash ,
this . fingerprint ,
final Map < String , int > fileChunks = const { } ,
final List < String > fileChunksMissing = const [ ] } )
: _fileChunks = fileChunks ,
_fileChunksMissing = fileChunksMissing ,
super . _ ( ) ;
factory _ $SnAttachmentFragmentImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $SnAttachmentFragmentImplFromJson ( json ) ;
@ override
final int id ;
@ override
final DateTime createdAt ;
@ override
final DateTime updatedAt ;
@ override
final DateTime ? deletedAt ;
@ override
final String rid ;
@ override
final String uuid ;
@ override
final int size ;
@ override
final String name ;
@ override
final String alt ;
@ override
final String mimetype ;
@ override
final String hash ;
@ override
final String ? fingerprint ;
final Map < String , int > _fileChunks ;
@ override
@ JsonKey ( )
Map < String , int > get fileChunks {
if ( _fileChunks is EqualUnmodifiableMapView ) return _fileChunks ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView ( _fileChunks ) ;
}
final List < String > _fileChunksMissing ;
@ override
@ JsonKey ( )
List < String > get fileChunksMissing {
if ( _fileChunksMissing is EqualUnmodifiableListView )
return _fileChunksMissing ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _fileChunksMissing ) ;
}
@ override
String toString ( ) {
return ' SnAttachmentFragment(id: $ id , createdAt: $ createdAt , updatedAt: $ updatedAt , deletedAt: $ deletedAt , rid: $ rid , uuid: $ uuid , size: $ size , name: $ name , alt: $ alt , mimetype: $ mimetype , hash: $ hash , fingerprint: $ fingerprint , fileChunks: $ fileChunks , fileChunksMissing: $ fileChunksMissing ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $SnAttachmentFragmentImpl & &
( 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 . rid , rid ) | | other . rid = = rid ) & &
( identical ( other . uuid , uuid ) | | other . uuid = = uuid ) & &
( identical ( other . size , size ) | | other . size = = size ) & &
( identical ( other . name , name ) | | other . name = = name ) & &
( identical ( other . alt , alt ) | | other . alt = = alt ) & &
( identical ( other . mimetype , mimetype ) | |
other . mimetype = = mimetype ) & &
( identical ( other . hash , hash ) | | other . hash = = hash ) & &
( identical ( other . fingerprint , fingerprint ) | |
other . fingerprint = = fingerprint ) & &
const DeepCollectionEquality ( )
. equals ( other . _fileChunks , _fileChunks ) & &
const DeepCollectionEquality ( )
. equals ( other . _fileChunksMissing , _fileChunksMissing ) ) ;
}
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
int get hashCode = > Object . hash (
runtimeType ,
id ,
createdAt ,
updatedAt ,
deletedAt ,
rid ,
uuid ,
size ,
name ,
alt ,
mimetype ,
hash ,
fingerprint ,
const DeepCollectionEquality ( ) . hash ( _fileChunks ) ,
const DeepCollectionEquality ( ) . hash ( _fileChunksMissing ) ) ;
/// Create a copy of SnAttachmentFragment
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $SnAttachmentFragmentImplCopyWith < _ $SnAttachmentFragmentImpl >
get copyWith = >
__ $ $SnAttachmentFragmentImplCopyWithImpl < _ $SnAttachmentFragmentImpl > (
this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $SnAttachmentFragmentImplToJson (
this ,
) ;
}
}
abstract class _SnAttachmentFragment extends SnAttachmentFragment {
const factory _SnAttachmentFragment (
{ required final int id ,
required final DateTime createdAt ,
required final DateTime updatedAt ,
required final DateTime ? deletedAt ,
required final String rid ,
required final String uuid ,
required final int size ,
required final String name ,
required final String alt ,
required final String mimetype ,
required final String hash ,
final String ? fingerprint ,
final Map < String , int > fileChunks ,
final List < String > fileChunksMissing } ) = _ $SnAttachmentFragmentImpl ;
const _SnAttachmentFragment . _ ( ) : super . _ ( ) ;
factory _SnAttachmentFragment . fromJson ( Map < String , dynamic > json ) =
_ $SnAttachmentFragmentImpl . fromJson ;
@ override
int get id ;
@ override
DateTime get createdAt ;
@ override
DateTime get updatedAt ;
@ override
DateTime ? get deletedAt ;
@ override
String get rid ;
@ override
String get uuid ;
@ override
int get size ;
@ override
String get name ;
@ override
String get alt ;
@ override
String get mimetype ;
@ override
String get hash ;
@ override
String ? get fingerprint ;
@ override
Map < String , int > get fileChunks ;
@ override
List < String > get fileChunksMissing ;
/// Create a copy of SnAttachmentFragment
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $SnAttachmentFragmentImplCopyWith < _ $SnAttachmentFragmentImpl >
get copyWith = > throw _privateConstructorUsedError ;
}
2024-11-09 04:04:03 +00:00
SnAttachmentPool _ $SnAttachmentPoolFromJson ( Map < String , dynamic > json ) {
return _SnAttachmentPool . fromJson ( json ) ;
}
/// @nodoc
mixin _ $SnAttachmentPool {
int get id = > throw _privateConstructorUsedError ;
DateTime get createdAt = > throw _privateConstructorUsedError ;
DateTime get updatedAt = > throw _privateConstructorUsedError ;
DateTime ? get deletedAt = > throw _privateConstructorUsedError ;
String get alias = > throw _privateConstructorUsedError ;
String get name = > throw _privateConstructorUsedError ;
String get description = > throw _privateConstructorUsedError ;
Map < String , dynamic > get config = > throw _privateConstructorUsedError ;
int ? get accountId = > throw _privateConstructorUsedError ;
/// Serializes this SnAttachmentPool to a JSON map.
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
/// Create a copy of SnAttachmentPool
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$SnAttachmentPoolCopyWith < SnAttachmentPool > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SnAttachmentPoolCopyWith < $Res > {
factory $SnAttachmentPoolCopyWith (
SnAttachmentPool value , $Res Function ( SnAttachmentPool ) then ) =
_ $SnAttachmentPoolCopyWithImpl < $Res , SnAttachmentPool > ;
@ useResult
$Res call (
{ int id ,
DateTime createdAt ,
DateTime updatedAt ,
DateTime ? deletedAt ,
String alias ,
String name ,
String description ,
Map < String , dynamic > config ,
int ? accountId } ) ;
}
/// @nodoc
class _ $SnAttachmentPoolCopyWithImpl < $Res , $Val extends SnAttachmentPool >
implements $SnAttachmentPoolCopyWith < $Res > {
_ $SnAttachmentPoolCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of SnAttachmentPool
/// 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 ? config = null ,
Object ? accountId = 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 ? ,
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 ,
config: null = = config
? _value . config
: config // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
accountId: freezed = = accountId
? _value . accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int ? ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $SnAttachmentPoolImplCopyWith < $Res >
implements $SnAttachmentPoolCopyWith < $Res > {
factory _ $ $SnAttachmentPoolImplCopyWith ( _ $SnAttachmentPoolImpl value ,
$Res Function ( _ $SnAttachmentPoolImpl ) then ) =
__ $ $SnAttachmentPoolImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ int id ,
DateTime createdAt ,
DateTime updatedAt ,
DateTime ? deletedAt ,
String alias ,
String name ,
String description ,
Map < String , dynamic > config ,
int ? accountId } ) ;
}
/// @nodoc
class __ $ $SnAttachmentPoolImplCopyWithImpl < $Res >
extends _ $SnAttachmentPoolCopyWithImpl < $Res , _ $SnAttachmentPoolImpl >
implements _ $ $SnAttachmentPoolImplCopyWith < $Res > {
__ $ $SnAttachmentPoolImplCopyWithImpl ( _ $SnAttachmentPoolImpl _value ,
$Res Function ( _ $SnAttachmentPoolImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of SnAttachmentPool
/// 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 ? config = null ,
Object ? accountId = freezed ,
} ) {
return _then ( _ $SnAttachmentPoolImpl (
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 ,
config: null = = config
? _value . _config
: config // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
accountId: freezed = = accountId
? _value . accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int ? ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $SnAttachmentPoolImpl implements _SnAttachmentPool {
const _ $SnAttachmentPoolImpl (
{ required this . id ,
required this . createdAt ,
required this . updatedAt ,
required this . deletedAt ,
required this . alias ,
required this . name ,
required this . description ,
required final Map < String , dynamic > config ,
required this . accountId } )
: _config = config ;
factory _ $SnAttachmentPoolImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $SnAttachmentPoolImplFromJson ( json ) ;
@ override
final int id ;
@ override
final DateTime createdAt ;
@ override
final DateTime updatedAt ;
@ override
final DateTime ? deletedAt ;
@ override
final String alias ;
@ override
final String name ;
@ override
final String description ;
final Map < String , dynamic > _config ;
@ override
Map < String , dynamic > get config {
if ( _config is EqualUnmodifiableMapView ) return _config ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView ( _config ) ;
}
@ override
final int ? accountId ;
@ override
String toString ( ) {
return ' SnAttachmentPool(id: $ id , createdAt: $ createdAt , updatedAt: $ updatedAt , deletedAt: $ deletedAt , alias: $ alias , name: $ name , description: $ description , config: $ config , accountId: $ accountId ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $SnAttachmentPoolImpl & &
( 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 . _config , _config ) & &
( identical ( other . accountId , accountId ) | |
other . accountId = = accountId ) ) ;
}
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
int get hashCode = > Object . hash (
runtimeType ,
id ,
createdAt ,
updatedAt ,
deletedAt ,
alias ,
name ,
description ,
const DeepCollectionEquality ( ) . hash ( _config ) ,
accountId ) ;
/// Create a copy of SnAttachmentPool
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $SnAttachmentPoolImplCopyWith < _ $SnAttachmentPoolImpl > get copyWith = >
__ $ $SnAttachmentPoolImplCopyWithImpl < _ $SnAttachmentPoolImpl > (
this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $SnAttachmentPoolImplToJson (
this ,
) ;
}
}
abstract class _SnAttachmentPool implements SnAttachmentPool {
const factory _SnAttachmentPool (
{ required final int id ,
required final DateTime createdAt ,
required final DateTime updatedAt ,
required final DateTime ? deletedAt ,
required final String alias ,
required final String name ,
required final String description ,
required final Map < String , dynamic > config ,
required final int ? accountId } ) = _ $SnAttachmentPoolImpl ;
factory _SnAttachmentPool . fromJson ( Map < String , dynamic > json ) =
_ $SnAttachmentPoolImpl . fromJson ;
@ override
int get id ;
@ override
DateTime get createdAt ;
@ override
DateTime get updatedAt ;
@ override
DateTime ? get deletedAt ;
@ override
String get alias ;
@ override
String get name ;
@ override
String get description ;
@ override
Map < String , dynamic > get config ;
@ override
int ? get accountId ;
/// Create a copy of SnAttachmentPool
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $SnAttachmentPoolImplCopyWith < _ $SnAttachmentPoolImpl > get copyWith = >
throw _privateConstructorUsedError ;
}
2024-12-28 18:13:31 +00:00
SnAttachmentDestination _ $SnAttachmentDestinationFromJson (
Map < String , dynamic > json ) {
return _SnAttachmentDestination . fromJson ( json ) ;
}
/// @nodoc
mixin _ $SnAttachmentDestination {
int get id = > throw _privateConstructorUsedError ;
String get type = > throw _privateConstructorUsedError ;
String get label = > throw _privateConstructorUsedError ;
String get region = > throw _privateConstructorUsedError ;
bool get isBoost = > throw _privateConstructorUsedError ;
/// Serializes this SnAttachmentDestination to a JSON map.
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
/// Create a copy of SnAttachmentDestination
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$SnAttachmentDestinationCopyWith < SnAttachmentDestination > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SnAttachmentDestinationCopyWith < $Res > {
factory $SnAttachmentDestinationCopyWith ( SnAttachmentDestination value ,
$Res Function ( SnAttachmentDestination ) then ) =
_ $SnAttachmentDestinationCopyWithImpl < $Res , SnAttachmentDestination > ;
@ useResult
$Res call ( { int id , String type , String label , String region , bool isBoost } ) ;
}
/// @nodoc
class _ $SnAttachmentDestinationCopyWithImpl < $Res ,
$Val extends SnAttachmentDestination >
implements $SnAttachmentDestinationCopyWith < $Res > {
_ $SnAttachmentDestinationCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of SnAttachmentDestination
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? id = null ,
Object ? type = null ,
Object ? label = null ,
Object ? region = null ,
Object ? isBoost = null ,
} ) {
return _then ( _value . copyWith (
id: null = = id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as int ,
type: null = = type
? _value . type
: type // ignore: cast_nullable_to_non_nullable
as String ,
label: null = = label
? _value . label
: label // ignore: cast_nullable_to_non_nullable
as String ,
region: null = = region
? _value . region
: region // ignore: cast_nullable_to_non_nullable
as String ,
isBoost: null = = isBoost
? _value . isBoost
: isBoost // ignore: cast_nullable_to_non_nullable
as bool ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $SnAttachmentDestinationImplCopyWith < $Res >
implements $SnAttachmentDestinationCopyWith < $Res > {
factory _ $ $SnAttachmentDestinationImplCopyWith (
_ $SnAttachmentDestinationImpl value ,
$Res Function ( _ $SnAttachmentDestinationImpl ) then ) =
__ $ $SnAttachmentDestinationImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call ( { int id , String type , String label , String region , bool isBoost } ) ;
}
/// @nodoc
class __ $ $SnAttachmentDestinationImplCopyWithImpl < $Res >
extends _ $SnAttachmentDestinationCopyWithImpl < $Res ,
_ $SnAttachmentDestinationImpl >
implements _ $ $SnAttachmentDestinationImplCopyWith < $Res > {
__ $ $SnAttachmentDestinationImplCopyWithImpl (
_ $SnAttachmentDestinationImpl _value ,
$Res Function ( _ $SnAttachmentDestinationImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of SnAttachmentDestination
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? id = null ,
Object ? type = null ,
Object ? label = null ,
Object ? region = null ,
Object ? isBoost = null ,
} ) {
return _then ( _ $SnAttachmentDestinationImpl (
id: null = = id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as int ,
type: null = = type
? _value . type
: type // ignore: cast_nullable_to_non_nullable
as String ,
label: null = = label
? _value . label
: label // ignore: cast_nullable_to_non_nullable
as String ,
region: null = = region
? _value . region
: region // ignore: cast_nullable_to_non_nullable
as String ,
isBoost: null = = isBoost
? _value . isBoost
: isBoost // ignore: cast_nullable_to_non_nullable
as bool ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $SnAttachmentDestinationImpl implements _SnAttachmentDestination {
const _ $SnAttachmentDestinationImpl (
{ this . id = 0 ,
required this . type ,
required this . label ,
required this . region ,
required this . isBoost } ) ;
factory _ $SnAttachmentDestinationImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $SnAttachmentDestinationImplFromJson ( json ) ;
@ override
@ JsonKey ( )
final int id ;
@ override
final String type ;
@ override
final String label ;
@ override
final String region ;
@ override
final bool isBoost ;
@ override
String toString ( ) {
return ' SnAttachmentDestination(id: $ id , type: $ type , label: $ label , region: $ region , isBoost: $ isBoost ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $SnAttachmentDestinationImpl & &
( identical ( other . id , id ) | | other . id = = id ) & &
( identical ( other . type , type ) | | other . type = = type ) & &
( identical ( other . label , label ) | | other . label = = label ) & &
( identical ( other . region , region ) | | other . region = = region ) & &
( identical ( other . isBoost , isBoost ) | | other . isBoost = = isBoost ) ) ;
}
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
int get hashCode = >
Object . hash ( runtimeType , id , type , label , region , isBoost ) ;
/// Create a copy of SnAttachmentDestination
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $SnAttachmentDestinationImplCopyWith < _ $SnAttachmentDestinationImpl >
get copyWith = > __ $ $SnAttachmentDestinationImplCopyWithImpl <
_ $SnAttachmentDestinationImpl > ( this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $SnAttachmentDestinationImplToJson (
this ,
) ;
}
}
abstract class _SnAttachmentDestination implements SnAttachmentDestination {
const factory _SnAttachmentDestination (
{ final int id ,
required final String type ,
required final String label ,
required final String region ,
required final bool isBoost } ) = _ $SnAttachmentDestinationImpl ;
factory _SnAttachmentDestination . fromJson ( Map < String , dynamic > json ) =
_ $SnAttachmentDestinationImpl . fromJson ;
@ override
int get id ;
@ override
String get type ;
@ override
String get label ;
@ override
String get region ;
@ override
bool get isBoost ;
/// Create a copy of SnAttachmentDestination
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $SnAttachmentDestinationImplCopyWith < _ $SnAttachmentDestinationImpl >
get copyWith = > throw _privateConstructorUsedError ;
}
SnAttachmentBoost _ $SnAttachmentBoostFromJson ( Map < String , dynamic > json ) {
return _SnAttachmentBoost . fromJson ( json ) ;
}
/// @nodoc
mixin _ $SnAttachmentBoost {
int get id = > throw _privateConstructorUsedError ;
DateTime get createdAt = > throw _privateConstructorUsedError ;
DateTime get updatedAt = > throw _privateConstructorUsedError ;
DateTime ? get deletedAt = > throw _privateConstructorUsedError ;
int get status = > throw _privateConstructorUsedError ;
int get destination = > throw _privateConstructorUsedError ;
int get attachmentId = > throw _privateConstructorUsedError ;
SnAttachment get attachment = > throw _privateConstructorUsedError ;
int get account = > throw _privateConstructorUsedError ;
/// Serializes this SnAttachmentBoost to a JSON map.
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
/// Create a copy of SnAttachmentBoost
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$SnAttachmentBoostCopyWith < SnAttachmentBoost > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SnAttachmentBoostCopyWith < $Res > {
factory $SnAttachmentBoostCopyWith (
SnAttachmentBoost value , $Res Function ( SnAttachmentBoost ) then ) =
_ $SnAttachmentBoostCopyWithImpl < $Res , SnAttachmentBoost > ;
@ useResult
$Res call (
{ int id ,
DateTime createdAt ,
DateTime updatedAt ,
DateTime ? deletedAt ,
int status ,
int destination ,
int attachmentId ,
SnAttachment attachment ,
int account } ) ;
$SnAttachmentCopyWith < $Res > get attachment ;
}
/// @nodoc
class _ $SnAttachmentBoostCopyWithImpl < $Res , $Val extends SnAttachmentBoost >
implements $SnAttachmentBoostCopyWith < $Res > {
_ $SnAttachmentBoostCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of SnAttachmentBoost
/// 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 ? status = null ,
Object ? destination = null ,
Object ? attachmentId = null ,
Object ? attachment = null ,
Object ? account = 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 ? ,
status: null = = status
? _value . status
: status // ignore: cast_nullable_to_non_nullable
as int ,
destination: null = = destination
? _value . destination
: destination // ignore: cast_nullable_to_non_nullable
as int ,
attachmentId: null = = attachmentId
? _value . attachmentId
: attachmentId // ignore: cast_nullable_to_non_nullable
as int ,
attachment: null = = attachment
? _value . attachment
: attachment // ignore: cast_nullable_to_non_nullable
as SnAttachment ,
account: null = = account
? _value . account
: account // ignore: cast_nullable_to_non_nullable
as int ,
) as $Val ) ;
}
/// Create a copy of SnAttachmentBoost
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$SnAttachmentCopyWith < $Res > get attachment {
return $SnAttachmentCopyWith < $Res > ( _value . attachment , ( value ) {
return _then ( _value . copyWith ( attachment: value ) as $Val ) ;
} ) ;
}
}
/// @nodoc
abstract class _ $ $SnAttachmentBoostImplCopyWith < $Res >
implements $SnAttachmentBoostCopyWith < $Res > {
factory _ $ $SnAttachmentBoostImplCopyWith ( _ $SnAttachmentBoostImpl value ,
$Res Function ( _ $SnAttachmentBoostImpl ) then ) =
__ $ $SnAttachmentBoostImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ int id ,
DateTime createdAt ,
DateTime updatedAt ,
DateTime ? deletedAt ,
int status ,
int destination ,
int attachmentId ,
SnAttachment attachment ,
int account } ) ;
@ override
$SnAttachmentCopyWith < $Res > get attachment ;
}
/// @nodoc
class __ $ $SnAttachmentBoostImplCopyWithImpl < $Res >
extends _ $SnAttachmentBoostCopyWithImpl < $Res , _ $SnAttachmentBoostImpl >
implements _ $ $SnAttachmentBoostImplCopyWith < $Res > {
__ $ $SnAttachmentBoostImplCopyWithImpl ( _ $SnAttachmentBoostImpl _value ,
$Res Function ( _ $SnAttachmentBoostImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of SnAttachmentBoost
/// 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 ? status = null ,
Object ? destination = null ,
Object ? attachmentId = null ,
Object ? attachment = null ,
Object ? account = null ,
} ) {
return _then ( _ $SnAttachmentBoostImpl (
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 ? ,
status: null = = status
? _value . status
: status // ignore: cast_nullable_to_non_nullable
as int ,
destination: null = = destination
? _value . destination
: destination // ignore: cast_nullable_to_non_nullable
as int ,
attachmentId: null = = attachmentId
? _value . attachmentId
: attachmentId // ignore: cast_nullable_to_non_nullable
as int ,
attachment: null = = attachment
? _value . attachment
: attachment // ignore: cast_nullable_to_non_nullable
as SnAttachment ,
account: null = = account
? _value . account
: account // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $SnAttachmentBoostImpl implements _SnAttachmentBoost {
const _ $SnAttachmentBoostImpl (
{ required this . id ,
required this . createdAt ,
required this . updatedAt ,
required this . deletedAt ,
required this . status ,
required this . destination ,
required this . attachmentId ,
required this . attachment ,
required this . account } ) ;
factory _ $SnAttachmentBoostImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $SnAttachmentBoostImplFromJson ( json ) ;
@ override
final int id ;
@ override
final DateTime createdAt ;
@ override
final DateTime updatedAt ;
@ override
final DateTime ? deletedAt ;
@ override
final int status ;
@ override
final int destination ;
@ override
final int attachmentId ;
@ override
final SnAttachment attachment ;
@ override
final int account ;
@ override
String toString ( ) {
return ' SnAttachmentBoost(id: $ id , createdAt: $ createdAt , updatedAt: $ updatedAt , deletedAt: $ deletedAt , status: $ status , destination: $ destination , attachmentId: $ attachmentId , attachment: $ attachment , account: $ account ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $SnAttachmentBoostImpl & &
( 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 . status , status ) | | other . status = = status ) & &
( identical ( other . destination , destination ) | |
other . destination = = destination ) & &
( identical ( other . attachmentId , attachmentId ) | |
other . attachmentId = = attachmentId ) & &
( identical ( other . attachment , attachment ) | |
other . attachment = = attachment ) & &
( identical ( other . account , account ) | | other . account = = account ) ) ;
}
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
int get hashCode = > Object . hash ( runtimeType , id , createdAt , updatedAt ,
deletedAt , status , destination , attachmentId , attachment , account ) ;
/// Create a copy of SnAttachmentBoost
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $SnAttachmentBoostImplCopyWith < _ $SnAttachmentBoostImpl > get copyWith = >
__ $ $SnAttachmentBoostImplCopyWithImpl < _ $SnAttachmentBoostImpl > (
this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $SnAttachmentBoostImplToJson (
this ,
) ;
}
}
abstract class _SnAttachmentBoost implements SnAttachmentBoost {
const factory _SnAttachmentBoost (
{ required final int id ,
required final DateTime createdAt ,
required final DateTime updatedAt ,
required final DateTime ? deletedAt ,
required final int status ,
required final int destination ,
required final int attachmentId ,
required final SnAttachment attachment ,
required final int account } ) = _ $SnAttachmentBoostImpl ;
factory _SnAttachmentBoost . fromJson ( Map < String , dynamic > json ) =
_ $SnAttachmentBoostImpl . fromJson ;
@ override
int get id ;
@ override
DateTime get createdAt ;
@ override
DateTime get updatedAt ;
@ override
DateTime ? get deletedAt ;
@ override
int get status ;
@ override
int get destination ;
@ override
int get attachmentId ;
@ override
SnAttachment get attachment ;
@ override
int get account ;
/// Create a copy of SnAttachmentBoost
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $SnAttachmentBoostImplCopyWith < _ $SnAttachmentBoostImpl > get copyWith = >
throw _privateConstructorUsedError ;
}