// 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 'paginated_response.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'); PaginatedResponse _$PaginatedResponseFromJson( Map json, T Function(Object?) fromJsonT) { return _PaginatedResponse.fromJson(json, fromJsonT); } /// @nodoc mixin _$PaginatedResponse { List get items => throw _privateConstructorUsedError; int get page => throw _privateConstructorUsedError; int get size => throw _privateConstructorUsedError; int get totalElements => throw _privateConstructorUsedError; int get totalPages => throw _privateConstructorUsedError; bool get first => throw _privateConstructorUsedError; bool get last => throw _privateConstructorUsedError; /// Serializes this PaginatedResponse to a JSON map. Map toJson(Object? Function(T) toJsonT) => throw _privateConstructorUsedError; /// Create a copy of PaginatedResponse /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $PaginatedResponseCopyWith> get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PaginatedResponseCopyWith { factory $PaginatedResponseCopyWith(PaginatedResponse value, $Res Function(PaginatedResponse) then) = _$PaginatedResponseCopyWithImpl>; @useResult $Res call( {List items, int page, int size, int totalElements, int totalPages, bool first, bool last}); } /// @nodoc class _$PaginatedResponseCopyWithImpl> implements $PaginatedResponseCopyWith { _$PaginatedResponseCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of PaginatedResponse /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? items = null, Object? page = null, Object? size = null, Object? totalElements = null, Object? totalPages = null, Object? first = null, Object? last = null, }) { return _then(_value.copyWith( items: null == items ? _value.items : items // ignore: cast_nullable_to_non_nullable as List, page: null == page ? _value.page : page // ignore: cast_nullable_to_non_nullable as int, size: null == size ? _value.size : size // ignore: cast_nullable_to_non_nullable as int, totalElements: null == totalElements ? _value.totalElements : totalElements // ignore: cast_nullable_to_non_nullable as int, totalPages: null == totalPages ? _value.totalPages : totalPages // ignore: cast_nullable_to_non_nullable as int, first: null == first ? _value.first : first // ignore: cast_nullable_to_non_nullable as bool, last: null == last ? _value.last : last // ignore: cast_nullable_to_non_nullable as bool, ) as $Val); } } /// @nodoc abstract class _$$PaginatedResponseImplCopyWith implements $PaginatedResponseCopyWith { factory _$$PaginatedResponseImplCopyWith(_$PaginatedResponseImpl value, $Res Function(_$PaginatedResponseImpl) then) = __$$PaginatedResponseImplCopyWithImpl; @override @useResult $Res call( {List items, int page, int size, int totalElements, int totalPages, bool first, bool last}); } /// @nodoc class __$$PaginatedResponseImplCopyWithImpl extends _$PaginatedResponseCopyWithImpl> implements _$$PaginatedResponseImplCopyWith { __$$PaginatedResponseImplCopyWithImpl(_$PaginatedResponseImpl _value, $Res Function(_$PaginatedResponseImpl) _then) : super(_value, _then); /// Create a copy of PaginatedResponse /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? items = null, Object? page = null, Object? size = null, Object? totalElements = null, Object? totalPages = null, Object? first = null, Object? last = null, }) { return _then(_$PaginatedResponseImpl( items: null == items ? _value._items : items // ignore: cast_nullable_to_non_nullable as List, page: null == page ? _value.page : page // ignore: cast_nullable_to_non_nullable as int, size: null == size ? _value.size : size // ignore: cast_nullable_to_non_nullable as int, totalElements: null == totalElements ? _value.totalElements : totalElements // ignore: cast_nullable_to_non_nullable as int, totalPages: null == totalPages ? _value.totalPages : totalPages // ignore: cast_nullable_to_non_nullable as int, first: null == first ? _value.first : first // ignore: cast_nullable_to_non_nullable as bool, last: null == last ? _value.last : last // ignore: cast_nullable_to_non_nullable as bool, )); } } /// @nodoc @JsonSerializable(genericArgumentFactories: true) class _$PaginatedResponseImpl implements _PaginatedResponse { const _$PaginatedResponseImpl( {required final List items, required this.page, required this.size, required this.totalElements, required this.totalPages, required this.first, required this.last}) : _items = items; factory _$PaginatedResponseImpl.fromJson( Map json, T Function(Object?) fromJsonT) => _$$PaginatedResponseImplFromJson(json, fromJsonT); final List _items; @override List get items { if (_items is EqualUnmodifiableListView) return _items; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_items); } @override final int page; @override final int size; @override final int totalElements; @override final int totalPages; @override final bool first; @override final bool last; @override String toString() { return 'PaginatedResponse<$T>(items: $items, page: $page, size: $size, totalElements: $totalElements, totalPages: $totalPages, first: $first, last: $last)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PaginatedResponseImpl && const DeepCollectionEquality().equals(other._items, _items) && (identical(other.page, page) || other.page == page) && (identical(other.size, size) || other.size == size) && (identical(other.totalElements, totalElements) || other.totalElements == totalElements) && (identical(other.totalPages, totalPages) || other.totalPages == totalPages) && (identical(other.first, first) || other.first == first) && (identical(other.last, last) || other.last == last)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(_items), page, size, totalElements, totalPages, first, last); /// Create a copy of PaginatedResponse /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PaginatedResponseImplCopyWith> get copyWith => __$$PaginatedResponseImplCopyWithImpl>( this, _$identity); @override Map toJson(Object? Function(T) toJsonT) { return _$$PaginatedResponseImplToJson(this, toJsonT); } } abstract class _PaginatedResponse implements PaginatedResponse { const factory _PaginatedResponse( {required final List items, required final int page, required final int size, required final int totalElements, required final int totalPages, required final bool first, required final bool last}) = _$PaginatedResponseImpl; factory _PaginatedResponse.fromJson( Map json, T Function(Object?) fromJsonT) = _$PaginatedResponseImpl.fromJson; @override List get items; @override int get page; @override int get size; @override int get totalElements; @override int get totalPages; @override bool get first; @override bool get last; /// Create a copy of PaginatedResponse /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$PaginatedResponseImplCopyWith> get copyWith => throw _privateConstructorUsedError; }