// 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 'category_dtos.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', ); ListCategoryDto _$ListCategoryDtoFromJson(Map json) { return _ListCategoryDto.fromJson(json); } /// @nodoc mixin _$ListCategoryDto { @JsonKey(name: "categories") List? get categories => throw _privateConstructorUsedError; @JsonKey(name: "total_count") int? get totalCount => throw _privateConstructorUsedError; @JsonKey(name: "page") int? get page => throw _privateConstructorUsedError; @JsonKey(name: "limit") int? get limit => throw _privateConstructorUsedError; @JsonKey(name: "total_pages") int? get totalPages => throw _privateConstructorUsedError; /// Serializes this ListCategoryDto to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of ListCategoryDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ListCategoryDtoCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ListCategoryDtoCopyWith<$Res> { factory $ListCategoryDtoCopyWith( ListCategoryDto value, $Res Function(ListCategoryDto) then, ) = _$ListCategoryDtoCopyWithImpl<$Res, ListCategoryDto>; @useResult $Res call({ @JsonKey(name: "categories") List? categories, @JsonKey(name: "total_count") int? totalCount, @JsonKey(name: "page") int? page, @JsonKey(name: "limit") int? limit, @JsonKey(name: "total_pages") int? totalPages, }); } /// @nodoc class _$ListCategoryDtoCopyWithImpl<$Res, $Val extends ListCategoryDto> implements $ListCategoryDtoCopyWith<$Res> { _$ListCategoryDtoCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ListCategoryDto /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? categories = freezed, Object? totalCount = freezed, Object? page = freezed, Object? limit = freezed, Object? totalPages = freezed, }) { return _then( _value.copyWith( categories: freezed == categories ? _value.categories : categories // ignore: cast_nullable_to_non_nullable as List?, totalCount: freezed == totalCount ? _value.totalCount : totalCount // ignore: cast_nullable_to_non_nullable as int?, page: freezed == page ? _value.page : page // ignore: cast_nullable_to_non_nullable as int?, limit: freezed == limit ? _value.limit : limit // ignore: cast_nullable_to_non_nullable as int?, totalPages: freezed == totalPages ? _value.totalPages : totalPages // ignore: cast_nullable_to_non_nullable as int?, ) as $Val, ); } } /// @nodoc abstract class _$$ListCategoryDtoImplCopyWith<$Res> implements $ListCategoryDtoCopyWith<$Res> { factory _$$ListCategoryDtoImplCopyWith( _$ListCategoryDtoImpl value, $Res Function(_$ListCategoryDtoImpl) then, ) = __$$ListCategoryDtoImplCopyWithImpl<$Res>; @override @useResult $Res call({ @JsonKey(name: "categories") List? categories, @JsonKey(name: "total_count") int? totalCount, @JsonKey(name: "page") int? page, @JsonKey(name: "limit") int? limit, @JsonKey(name: "total_pages") int? totalPages, }); } /// @nodoc class __$$ListCategoryDtoImplCopyWithImpl<$Res> extends _$ListCategoryDtoCopyWithImpl<$Res, _$ListCategoryDtoImpl> implements _$$ListCategoryDtoImplCopyWith<$Res> { __$$ListCategoryDtoImplCopyWithImpl( _$ListCategoryDtoImpl _value, $Res Function(_$ListCategoryDtoImpl) _then, ) : super(_value, _then); /// Create a copy of ListCategoryDto /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? categories = freezed, Object? totalCount = freezed, Object? page = freezed, Object? limit = freezed, Object? totalPages = freezed, }) { return _then( _$ListCategoryDtoImpl( categories: freezed == categories ? _value._categories : categories // ignore: cast_nullable_to_non_nullable as List?, totalCount: freezed == totalCount ? _value.totalCount : totalCount // ignore: cast_nullable_to_non_nullable as int?, page: freezed == page ? _value.page : page // ignore: cast_nullable_to_non_nullable as int?, limit: freezed == limit ? _value.limit : limit // ignore: cast_nullable_to_non_nullable as int?, totalPages: freezed == totalPages ? _value.totalPages : totalPages // ignore: cast_nullable_to_non_nullable as int?, ), ); } } /// @nodoc @JsonSerializable() class _$ListCategoryDtoImpl extends _ListCategoryDto { const _$ListCategoryDtoImpl({ @JsonKey(name: "categories") final List? categories, @JsonKey(name: "total_count") this.totalCount, @JsonKey(name: "page") this.page, @JsonKey(name: "limit") this.limit, @JsonKey(name: "total_pages") this.totalPages, }) : _categories = categories, super._(); factory _$ListCategoryDtoImpl.fromJson(Map json) => _$$ListCategoryDtoImplFromJson(json); final List? _categories; @override @JsonKey(name: "categories") List? get categories { final value = _categories; if (value == null) return null; if (_categories is EqualUnmodifiableListView) return _categories; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } @override @JsonKey(name: "total_count") final int? totalCount; @override @JsonKey(name: "page") final int? page; @override @JsonKey(name: "limit") final int? limit; @override @JsonKey(name: "total_pages") final int? totalPages; @override String toString() { return 'ListCategoryDto(categories: $categories, totalCount: $totalCount, page: $page, limit: $limit, totalPages: $totalPages)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ListCategoryDtoImpl && const DeepCollectionEquality().equals( other._categories, _categories, ) && (identical(other.totalCount, totalCount) || other.totalCount == totalCount) && (identical(other.page, page) || other.page == page) && (identical(other.limit, limit) || other.limit == limit) && (identical(other.totalPages, totalPages) || other.totalPages == totalPages)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(_categories), totalCount, page, limit, totalPages, ); /// Create a copy of ListCategoryDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ListCategoryDtoImplCopyWith<_$ListCategoryDtoImpl> get copyWith => __$$ListCategoryDtoImplCopyWithImpl<_$ListCategoryDtoImpl>( this, _$identity, ); @override Map toJson() { return _$$ListCategoryDtoImplToJson(this); } } abstract class _ListCategoryDto extends ListCategoryDto { const factory _ListCategoryDto({ @JsonKey(name: "categories") final List? categories, @JsonKey(name: "total_count") final int? totalCount, @JsonKey(name: "page") final int? page, @JsonKey(name: "limit") final int? limit, @JsonKey(name: "total_pages") final int? totalPages, }) = _$ListCategoryDtoImpl; const _ListCategoryDto._() : super._(); factory _ListCategoryDto.fromJson(Map json) = _$ListCategoryDtoImpl.fromJson; @override @JsonKey(name: "categories") List? get categories; @override @JsonKey(name: "total_count") int? get totalCount; @override @JsonKey(name: "page") int? get page; @override @JsonKey(name: "limit") int? get limit; @override @JsonKey(name: "total_pages") int? get totalPages; /// Create a copy of ListCategoryDto /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ListCategoryDtoImplCopyWith<_$ListCategoryDtoImpl> get copyWith => throw _privateConstructorUsedError; } CategoryDto _$CategoryDtoFromJson(Map json) { return _CategoryDto.fromJson(json); } /// @nodoc mixin _$CategoryDto { @JsonKey(name: "id") String? get id => throw _privateConstructorUsedError; @JsonKey(name: "organization_id") String? get organizationId => throw _privateConstructorUsedError; @JsonKey(name: "name") String? get name => throw _privateConstructorUsedError; @JsonKey(name: "description") String? get description => throw _privateConstructorUsedError; @JsonKey(name: "business_type") String? get businessType => throw _privateConstructorUsedError; @JsonKey(name: "order") int? get order => throw _privateConstructorUsedError; @JsonKey(name: "metadata") Map? get metadata => throw _privateConstructorUsedError; @JsonKey(name: "created_at") String? get createdAt => throw _privateConstructorUsedError; @JsonKey(name: "updated_at") String? get updatedAt => throw _privateConstructorUsedError; /// Serializes this CategoryDto to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of CategoryDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $CategoryDtoCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $CategoryDtoCopyWith<$Res> { factory $CategoryDtoCopyWith( CategoryDto value, $Res Function(CategoryDto) then, ) = _$CategoryDtoCopyWithImpl<$Res, CategoryDto>; @useResult $Res call({ @JsonKey(name: "id") String? id, @JsonKey(name: "organization_id") String? organizationId, @JsonKey(name: "name") String? name, @JsonKey(name: "description") String? description, @JsonKey(name: "business_type") String? businessType, @JsonKey(name: "order") int? order, @JsonKey(name: "metadata") Map? metadata, @JsonKey(name: "created_at") String? createdAt, @JsonKey(name: "updated_at") String? updatedAt, }); } /// @nodoc class _$CategoryDtoCopyWithImpl<$Res, $Val extends CategoryDto> implements $CategoryDtoCopyWith<$Res> { _$CategoryDtoCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of CategoryDto /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = freezed, Object? organizationId = freezed, Object? name = freezed, Object? description = freezed, Object? businessType = freezed, Object? order = freezed, Object? metadata = freezed, Object? createdAt = freezed, Object? updatedAt = freezed, }) { return _then( _value.copyWith( id: freezed == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String?, organizationId: freezed == organizationId ? _value.organizationId : organizationId // ignore: cast_nullable_to_non_nullable as String?, name: freezed == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String?, description: freezed == description ? _value.description : description // ignore: cast_nullable_to_non_nullable as String?, businessType: freezed == businessType ? _value.businessType : businessType // ignore: cast_nullable_to_non_nullable as String?, order: freezed == order ? _value.order : order // ignore: cast_nullable_to_non_nullable as int?, metadata: freezed == metadata ? _value.metadata : metadata // ignore: cast_nullable_to_non_nullable as Map?, createdAt: freezed == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as String?, updatedAt: freezed == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as String?, ) as $Val, ); } } /// @nodoc abstract class _$$CategoryDtoImplCopyWith<$Res> implements $CategoryDtoCopyWith<$Res> { factory _$$CategoryDtoImplCopyWith( _$CategoryDtoImpl value, $Res Function(_$CategoryDtoImpl) then, ) = __$$CategoryDtoImplCopyWithImpl<$Res>; @override @useResult $Res call({ @JsonKey(name: "id") String? id, @JsonKey(name: "organization_id") String? organizationId, @JsonKey(name: "name") String? name, @JsonKey(name: "description") String? description, @JsonKey(name: "business_type") String? businessType, @JsonKey(name: "order") int? order, @JsonKey(name: "metadata") Map? metadata, @JsonKey(name: "created_at") String? createdAt, @JsonKey(name: "updated_at") String? updatedAt, }); } /// @nodoc class __$$CategoryDtoImplCopyWithImpl<$Res> extends _$CategoryDtoCopyWithImpl<$Res, _$CategoryDtoImpl> implements _$$CategoryDtoImplCopyWith<$Res> { __$$CategoryDtoImplCopyWithImpl( _$CategoryDtoImpl _value, $Res Function(_$CategoryDtoImpl) _then, ) : super(_value, _then); /// Create a copy of CategoryDto /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = freezed, Object? organizationId = freezed, Object? name = freezed, Object? description = freezed, Object? businessType = freezed, Object? order = freezed, Object? metadata = freezed, Object? createdAt = freezed, Object? updatedAt = freezed, }) { return _then( _$CategoryDtoImpl( id: freezed == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String?, organizationId: freezed == organizationId ? _value.organizationId : organizationId // ignore: cast_nullable_to_non_nullable as String?, name: freezed == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String?, description: freezed == description ? _value.description : description // ignore: cast_nullable_to_non_nullable as String?, businessType: freezed == businessType ? _value.businessType : businessType // ignore: cast_nullable_to_non_nullable as String?, order: freezed == order ? _value.order : order // ignore: cast_nullable_to_non_nullable as int?, metadata: freezed == metadata ? _value._metadata : metadata // ignore: cast_nullable_to_non_nullable as Map?, createdAt: freezed == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as String?, updatedAt: freezed == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as String?, ), ); } } /// @nodoc @JsonSerializable() class _$CategoryDtoImpl extends _CategoryDto { const _$CategoryDtoImpl({ @JsonKey(name: "id") this.id, @JsonKey(name: "organization_id") this.organizationId, @JsonKey(name: "name") this.name, @JsonKey(name: "description") this.description, @JsonKey(name: "business_type") this.businessType, @JsonKey(name: "order") this.order, @JsonKey(name: "metadata") final Map? metadata, @JsonKey(name: "created_at") this.createdAt, @JsonKey(name: "updated_at") this.updatedAt, }) : _metadata = metadata, super._(); factory _$CategoryDtoImpl.fromJson(Map json) => _$$CategoryDtoImplFromJson(json); @override @JsonKey(name: "id") final String? id; @override @JsonKey(name: "organization_id") final String? organizationId; @override @JsonKey(name: "name") final String? name; @override @JsonKey(name: "description") final String? description; @override @JsonKey(name: "business_type") final String? businessType; @override @JsonKey(name: "order") final int? order; final Map? _metadata; @override @JsonKey(name: "metadata") Map? get metadata { final value = _metadata; if (value == null) return null; if (_metadata is EqualUnmodifiableMapView) return _metadata; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(value); } @override @JsonKey(name: "created_at") final String? createdAt; @override @JsonKey(name: "updated_at") final String? updatedAt; @override String toString() { return 'CategoryDto(id: $id, organizationId: $organizationId, name: $name, description: $description, businessType: $businessType, order: $order, metadata: $metadata, createdAt: $createdAt, updatedAt: $updatedAt)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CategoryDtoImpl && (identical(other.id, id) || other.id == id) && (identical(other.organizationId, organizationId) || other.organizationId == organizationId) && (identical(other.name, name) || other.name == name) && (identical(other.description, description) || other.description == description) && (identical(other.businessType, businessType) || other.businessType == businessType) && (identical(other.order, order) || other.order == order) && const DeepCollectionEquality().equals(other._metadata, _metadata) && (identical(other.createdAt, createdAt) || other.createdAt == createdAt) && (identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, id, organizationId, name, description, businessType, order, const DeepCollectionEquality().hash(_metadata), createdAt, updatedAt, ); /// Create a copy of CategoryDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CategoryDtoImplCopyWith<_$CategoryDtoImpl> get copyWith => __$$CategoryDtoImplCopyWithImpl<_$CategoryDtoImpl>(this, _$identity); @override Map toJson() { return _$$CategoryDtoImplToJson(this); } } abstract class _CategoryDto extends CategoryDto { const factory _CategoryDto({ @JsonKey(name: "id") final String? id, @JsonKey(name: "organization_id") final String? organizationId, @JsonKey(name: "name") final String? name, @JsonKey(name: "description") final String? description, @JsonKey(name: "business_type") final String? businessType, @JsonKey(name: "order") final int? order, @JsonKey(name: "metadata") final Map? metadata, @JsonKey(name: "created_at") final String? createdAt, @JsonKey(name: "updated_at") final String? updatedAt, }) = _$CategoryDtoImpl; const _CategoryDto._() : super._(); factory _CategoryDto.fromJson(Map json) = _$CategoryDtoImpl.fromJson; @override @JsonKey(name: "id") String? get id; @override @JsonKey(name: "organization_id") String? get organizationId; @override @JsonKey(name: "name") String? get name; @override @JsonKey(name: "description") String? get description; @override @JsonKey(name: "business_type") String? get businessType; @override @JsonKey(name: "order") int? get order; @override @JsonKey(name: "metadata") Map? get metadata; @override @JsonKey(name: "created_at") String? get createdAt; @override @JsonKey(name: "updated_at") String? get updatedAt; /// Create a copy of CategoryDto /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$CategoryDtoImplCopyWith<_$CategoryDtoImpl> get copyWith => throw _privateConstructorUsedError; }