// 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 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.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); SnAttachment _$SnAttachmentFromJson(Map json) { return _SnAttachment.fromJson(json); } /// @nodoc mixin _$SnAttachment { 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; int get destination => throw _privateConstructorUsedError; int get refCount => throw _privateConstructorUsedError; int get contentRating => throw _privateConstructorUsedError; int get qualityRating => throw _privateConstructorUsedError; DateTime? get cleanedAt => throw _privateConstructorUsedError; bool get isAnalyzed => throw _privateConstructorUsedError; bool get isSelfRef => throw _privateConstructorUsedError; bool get isIndexable => throw _privateConstructorUsedError; SnAttachment? get ref => throw _privateConstructorUsedError; int? get refId => throw _privateConstructorUsedError; SnAttachmentPool? get pool => throw _privateConstructorUsedError; int get poolId => throw _privateConstructorUsedError; int get accountId => throw _privateConstructorUsedError; int? get thumbnailId => throw _privateConstructorUsedError; SnAttachment? get thumbnail => throw _privateConstructorUsedError; int? get compressedId => throw _privateConstructorUsedError; SnAttachment? get compressed => throw _privateConstructorUsedError; Map get usermeta => throw _privateConstructorUsedError; Map get metadata => throw _privateConstructorUsedError; /// Serializes this SnAttachment to a JSON map. Map 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 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, DateTime? deletedAt, String rid, String uuid, int size, String name, String alt, String mimetype, String hash, int destination, int refCount, int contentRating, int qualityRating, DateTime? cleanedAt, bool isAnalyzed, bool isSelfRef, bool isIndexable, SnAttachment? ref, int? refId, SnAttachmentPool? pool, int poolId, int accountId, int? thumbnailId, SnAttachment? thumbnail, int? compressedId, SnAttachment? compressed, Map usermeta, Map metadata}); $SnAttachmentCopyWith<$Res>? get ref; $SnAttachmentPoolCopyWith<$Res>? get pool; $SnAttachmentCopyWith<$Res>? get thumbnail; $SnAttachmentCopyWith<$Res>? get compressed; } /// @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, Object? contentRating = null, Object? qualityRating = null, Object? cleanedAt = freezed, Object? isAnalyzed = null, Object? isSelfRef = null, Object? isIndexable = null, Object? ref = freezed, Object? refId = freezed, Object? pool = freezed, Object? poolId = null, Object? accountId = null, Object? thumbnailId = freezed, Object? thumbnail = freezed, Object? compressedId = freezed, Object? compressed = freezed, Object? usermeta = null, Object? metadata = 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, 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, 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, cleanedAt: freezed == cleanedAt ? _value.cleanedAt : cleanedAt // ignore: cast_nullable_to_non_nullable as DateTime?, 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, isIndexable: null == isIndexable ? _value.isIndexable : isIndexable // ignore: cast_nullable_to_non_nullable as bool, ref: freezed == ref ? _value.ref : ref // ignore: cast_nullable_to_non_nullable as SnAttachment?, refId: freezed == refId ? _value.refId : refId // ignore: cast_nullable_to_non_nullable as int?, pool: freezed == pool ? _value.pool : pool // ignore: cast_nullable_to_non_nullable as SnAttachmentPool?, poolId: null == poolId ? _value.poolId : poolId // ignore: cast_nullable_to_non_nullable as int, accountId: null == accountId ? _value.accountId : accountId // ignore: cast_nullable_to_non_nullable as int, 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?, usermeta: null == usermeta ? _value.usermeta : usermeta // ignore: cast_nullable_to_non_nullable as Map, metadata: null == metadata ? _value.metadata : metadata // ignore: cast_nullable_to_non_nullable as Map, ) 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 ref { if (_value.ref == null) { return null; } return $SnAttachmentCopyWith<$Res>(_value.ref!, (value) { return _then(_value.copyWith(ref: value) as $Val); }); } /// 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); }); } /// 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); }); } } /// @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, DateTime? deletedAt, String rid, String uuid, int size, String name, String alt, String mimetype, String hash, int destination, int refCount, int contentRating, int qualityRating, DateTime? cleanedAt, bool isAnalyzed, bool isSelfRef, bool isIndexable, SnAttachment? ref, int? refId, SnAttachmentPool? pool, int poolId, int accountId, int? thumbnailId, SnAttachment? thumbnail, int? compressedId, SnAttachment? compressed, Map usermeta, Map metadata}); @override $SnAttachmentCopyWith<$Res>? get ref; @override $SnAttachmentPoolCopyWith<$Res>? get pool; @override $SnAttachmentCopyWith<$Res>? get thumbnail; @override $SnAttachmentCopyWith<$Res>? get compressed; } /// @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, Object? contentRating = null, Object? qualityRating = null, Object? cleanedAt = freezed, Object? isAnalyzed = null, Object? isSelfRef = null, Object? isIndexable = null, Object? ref = freezed, Object? refId = freezed, Object? pool = freezed, Object? poolId = null, Object? accountId = null, Object? thumbnailId = freezed, Object? thumbnail = freezed, Object? compressedId = freezed, Object? compressed = freezed, Object? usermeta = null, Object? metadata = null, }) { 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 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, 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, 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, cleanedAt: freezed == cleanedAt ? _value.cleanedAt : cleanedAt // ignore: cast_nullable_to_non_nullable as DateTime?, 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, isIndexable: null == isIndexable ? _value.isIndexable : isIndexable // ignore: cast_nullable_to_non_nullable as bool, ref: freezed == ref ? _value.ref : ref // ignore: cast_nullable_to_non_nullable as SnAttachment?, refId: freezed == refId ? _value.refId : refId // ignore: cast_nullable_to_non_nullable as int?, pool: freezed == pool ? _value.pool : pool // ignore: cast_nullable_to_non_nullable as SnAttachmentPool?, poolId: null == poolId ? _value.poolId : poolId // ignore: cast_nullable_to_non_nullable as int, accountId: null == accountId ? _value.accountId : accountId // ignore: cast_nullable_to_non_nullable as int, 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?, usermeta: null == usermeta ? _value._usermeta : usermeta // ignore: cast_nullable_to_non_nullable as Map, metadata: null == metadata ? _value._metadata : metadata // ignore: cast_nullable_to_non_nullable as Map, )); } } /// @nodoc @JsonSerializable() class _$SnAttachmentImpl extends _SnAttachment { 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, this.contentRating = 0, this.qualityRating = 0, required this.cleanedAt, required this.isAnalyzed, required this.isSelfRef, required this.isIndexable, required this.ref, required this.refId, required this.pool, required this.poolId, required this.accountId, this.thumbnailId, this.thumbnail, this.compressedId, this.compressed, final Map usermeta = const {}, final Map metadata = const {}}) : _usermeta = usermeta, _metadata = metadata, super._(); factory _$SnAttachmentImpl.fromJson(Map json) => _$$SnAttachmentImplFromJson(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 int destination; @override final int refCount; @override @JsonKey() final int contentRating; @override @JsonKey() final int qualityRating; @override final DateTime? cleanedAt; @override final bool isAnalyzed; @override final bool isSelfRef; @override final bool isIndexable; @override final SnAttachment? ref; @override final int? refId; @override final SnAttachmentPool? pool; @override final int poolId; @override final int accountId; @override final int? thumbnailId; @override final SnAttachment? thumbnail; @override final int? compressedId; @override final SnAttachment? compressed; final Map _usermeta; @override @JsonKey() Map get usermeta { if (_usermeta is EqualUnmodifiableMapView) return _usermeta; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_usermeta); } final Map _metadata; @override @JsonKey() Map get metadata { if (_metadata is EqualUnmodifiableMapView) return _metadata; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_metadata); } @override String toString() { 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, usermeta: $usermeta, metadata: $metadata)'; } @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) && (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.destination, destination) || other.destination == destination) && (identical(other.refCount, refCount) || other.refCount == refCount) && (identical(other.contentRating, contentRating) || other.contentRating == contentRating) && (identical(other.qualityRating, qualityRating) || other.qualityRating == qualityRating) && (identical(other.cleanedAt, cleanedAt) || other.cleanedAt == cleanedAt) && (identical(other.isAnalyzed, isAnalyzed) || other.isAnalyzed == isAnalyzed) && (identical(other.isSelfRef, isSelfRef) || other.isSelfRef == isSelfRef) && (identical(other.isIndexable, isIndexable) || other.isIndexable == isIndexable) && (identical(other.ref, ref) || other.ref == ref) && (identical(other.refId, refId) || other.refId == refId) && (identical(other.pool, pool) || other.pool == pool) && (identical(other.poolId, poolId) || other.poolId == poolId) && (identical(other.accountId, accountId) || other.accountId == accountId) && (identical(other.thumbnailId, thumbnailId) || other.thumbnailId == thumbnailId) && (identical(other.thumbnail, thumbnail) || other.thumbnail == thumbnail) && (identical(other.compressedId, compressedId) || other.compressedId == compressedId) && (identical(other.compressed, compressed) || other.compressed == compressed) && const DeepCollectionEquality().equals(other._usermeta, _usermeta) && const DeepCollectionEquality().equals(other._metadata, _metadata)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hashAll([ runtimeType, id, createdAt, updatedAt, deletedAt, rid, uuid, size, name, alt, mimetype, hash, destination, refCount, contentRating, qualityRating, cleanedAt, isAnalyzed, isSelfRef, isIndexable, ref, refId, pool, poolId, accountId, thumbnailId, thumbnail, compressedId, compressed, const DeepCollectionEquality().hash(_usermeta), const DeepCollectionEquality().hash(_metadata) ]); /// 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 toJson() { return _$$SnAttachmentImplToJson( this, ); } } abstract class _SnAttachment extends SnAttachment { const factory _SnAttachment( {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, required final int destination, required final int refCount, final int contentRating, final int qualityRating, required final DateTime? cleanedAt, required final bool isAnalyzed, required final bool isSelfRef, required final bool isIndexable, required final SnAttachment? ref, required final int? refId, required final SnAttachmentPool? pool, required final int poolId, required final int accountId, final int? thumbnailId, final SnAttachment? thumbnail, final int? compressedId, final SnAttachment? compressed, final Map usermeta, final Map metadata}) = _$SnAttachmentImpl; const _SnAttachment._() : super._(); factory _SnAttachment.fromJson(Map json) = _$SnAttachmentImpl.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 int get destination; @override int get refCount; @override int get contentRating; @override int get qualityRating; @override DateTime? get cleanedAt; @override bool get isAnalyzed; @override bool get isSelfRef; @override bool get isIndexable; @override SnAttachment? get ref; @override int? get refId; @override SnAttachmentPool? get pool; @override int get poolId; @override int get accountId; @override int? get thumbnailId; @override SnAttachment? get thumbnail; @override int? get compressedId; @override SnAttachment? get compressed; @override Map get usermeta; @override Map get metadata; /// 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; } SnAttachmentFragment _$SnAttachmentFragmentFromJson(Map 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 get fileChunks => throw _privateConstructorUsedError; List get fileChunksMissing => throw _privateConstructorUsedError; /// Serializes this SnAttachmentFragment to a JSON map. Map 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 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 fileChunks, List 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, fileChunksMissing: null == fileChunksMissing ? _value.fileChunksMissing : fileChunksMissing // ignore: cast_nullable_to_non_nullable as List, ) 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 fileChunks, List 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, fileChunksMissing: null == fileChunksMissing ? _value._fileChunksMissing : fileChunksMissing // ignore: cast_nullable_to_non_nullable as List, )); } } /// @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 fileChunks = const {}, final List fileChunksMissing = const []}) : _fileChunks = fileChunks, _fileChunksMissing = fileChunksMissing, super._(); factory _$SnAttachmentFragmentImpl.fromJson(Map 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 _fileChunks; @override @JsonKey() Map get fileChunks { if (_fileChunks is EqualUnmodifiableMapView) return _fileChunks; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_fileChunks); } final List _fileChunksMissing; @override @JsonKey() List 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 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 fileChunks, final List fileChunksMissing}) = _$SnAttachmentFragmentImpl; const _SnAttachmentFragment._() : super._(); factory _SnAttachmentFragment.fromJson(Map 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 get fileChunks; @override List 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; } SnAttachmentPool _$SnAttachmentPoolFromJson(Map 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 get config => throw _privateConstructorUsedError; int? get accountId => throw _privateConstructorUsedError; /// Serializes this SnAttachmentPool to a JSON map. Map 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 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 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, 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 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, 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 config, required this.accountId}) : _config = config; factory _$SnAttachmentPoolImpl.fromJson(Map 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 _config; @override Map 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 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 config, required final int? accountId}) = _$SnAttachmentPoolImpl; factory _SnAttachmentPool.fromJson(Map 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 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; }