// 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 'comment_model.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'); Comment _$CommentFromJson(Map json) { return _Comment.fromJson(json); } /// @nodoc mixin _$Comment { @JsonKey(name: "data") List get data => throw _privateConstructorUsedError; @JsonKey(name: "links") Links get links => throw _privateConstructorUsedError; @JsonKey(name: "meta") Meta get meta => throw _privateConstructorUsedError; /// Serializes this Comment to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of Comment /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $CommentCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $CommentCopyWith<$Res> { factory $CommentCopyWith(Comment value, $Res Function(Comment) then) = _$CommentCopyWithImpl<$Res, Comment>; @useResult $Res call( {@JsonKey(name: "data") List data, @JsonKey(name: "links") Links links, @JsonKey(name: "meta") Meta meta}); $LinksCopyWith<$Res> get links; $MetaCopyWith<$Res> get meta; } /// @nodoc class _$CommentCopyWithImpl<$Res, $Val extends Comment> implements $CommentCopyWith<$Res> { _$CommentCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of Comment /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? data = null, Object? links = null, Object? meta = null, }) { return _then(_value.copyWith( data: null == data ? _value.data : data // ignore: cast_nullable_to_non_nullable as List, links: null == links ? _value.links : links // ignore: cast_nullable_to_non_nullable as Links, meta: null == meta ? _value.meta : meta // ignore: cast_nullable_to_non_nullable as Meta, ) as $Val); } /// Create a copy of Comment /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $LinksCopyWith<$Res> get links { return $LinksCopyWith<$Res>(_value.links, (value) { return _then(_value.copyWith(links: value) as $Val); }); } /// Create a copy of Comment /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MetaCopyWith<$Res> get meta { return $MetaCopyWith<$Res>(_value.meta, (value) { return _then(_value.copyWith(meta: value) as $Val); }); } } /// @nodoc abstract class _$$CommentImplCopyWith<$Res> implements $CommentCopyWith<$Res> { factory _$$CommentImplCopyWith( _$CommentImpl value, $Res Function(_$CommentImpl) then) = __$$CommentImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(name: "data") List data, @JsonKey(name: "links") Links links, @JsonKey(name: "meta") Meta meta}); @override $LinksCopyWith<$Res> get links; @override $MetaCopyWith<$Res> get meta; } /// @nodoc class __$$CommentImplCopyWithImpl<$Res> extends _$CommentCopyWithImpl<$Res, _$CommentImpl> implements _$$CommentImplCopyWith<$Res> { __$$CommentImplCopyWithImpl( _$CommentImpl _value, $Res Function(_$CommentImpl) _then) : super(_value, _then); /// Create a copy of Comment /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? data = null, Object? links = null, Object? meta = null, }) { return _then(_$CommentImpl( data: null == data ? _value._data : data // ignore: cast_nullable_to_non_nullable as List, links: null == links ? _value.links : links // ignore: cast_nullable_to_non_nullable as Links, meta: null == meta ? _value.meta : meta // ignore: cast_nullable_to_non_nullable as Meta, )); } } /// @nodoc @JsonSerializable() class _$CommentImpl implements _Comment { const _$CommentImpl( {@JsonKey(name: "data") required final List data, @JsonKey(name: "links") required this.links, @JsonKey(name: "meta") required this.meta}) : _data = data; factory _$CommentImpl.fromJson(Map json) => _$$CommentImplFromJson(json); final List _data; @override @JsonKey(name: "data") List get data { if (_data is EqualUnmodifiableListView) return _data; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_data); } @override @JsonKey(name: "links") final Links links; @override @JsonKey(name: "meta") final Meta meta; @override String toString() { return 'Comment(data: $data, links: $links, meta: $meta)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CommentImpl && const DeepCollectionEquality().equals(other._data, _data) && (identical(other.links, links) || other.links == links) && (identical(other.meta, meta) || other.meta == meta)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(_data), links, meta); /// Create a copy of Comment /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CommentImplCopyWith<_$CommentImpl> get copyWith => __$$CommentImplCopyWithImpl<_$CommentImpl>(this, _$identity); @override Map toJson() { return _$$CommentImplToJson( this, ); } } abstract class _Comment implements Comment { const factory _Comment( {@JsonKey(name: "data") required final List data, @JsonKey(name: "links") required final Links links, @JsonKey(name: "meta") required final Meta meta}) = _$CommentImpl; factory _Comment.fromJson(Map json) = _$CommentImpl.fromJson; @override @JsonKey(name: "data") List get data; @override @JsonKey(name: "links") Links get links; @override @JsonKey(name: "meta") Meta get meta; /// Create a copy of Comment /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$CommentImplCopyWith<_$CommentImpl> get copyWith => throw _privateConstructorUsedError; } Datum _$DatumFromJson(Map json) { return _Datum.fromJson(json); } /// @nodoc mixin _$Datum { @JsonKey(name: "id") int get id => throw _privateConstructorUsedError; @JsonKey(name: "author_name") String get authorName => throw _privateConstructorUsedError; @JsonKey(name: "author_profile_icon") String get authorProfileIcon => throw _privateConstructorUsedError; @JsonKey(name: "body") String get body => throw _privateConstructorUsedError; @JsonKey(name: "children_comments") List get childrenComments => throw _privateConstructorUsedError; /// Serializes this Datum to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of Datum /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $DatumCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DatumCopyWith<$Res> { factory $DatumCopyWith(Datum value, $Res Function(Datum) then) = _$DatumCopyWithImpl<$Res, Datum>; @useResult $Res call( {@JsonKey(name: "id") int id, @JsonKey(name: "author_name") String authorName, @JsonKey(name: "author_profile_icon") String authorProfileIcon, @JsonKey(name: "body") String body, @JsonKey(name: "children_comments") List childrenComments}); } /// @nodoc class _$DatumCopyWithImpl<$Res, $Val extends Datum> implements $DatumCopyWith<$Res> { _$DatumCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of Datum /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? authorName = null, Object? authorProfileIcon = null, Object? body = null, Object? childrenComments = null, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, authorName: null == authorName ? _value.authorName : authorName // ignore: cast_nullable_to_non_nullable as String, authorProfileIcon: null == authorProfileIcon ? _value.authorProfileIcon : authorProfileIcon // ignore: cast_nullable_to_non_nullable as String, body: null == body ? _value.body : body // ignore: cast_nullable_to_non_nullable as String, childrenComments: null == childrenComments ? _value.childrenComments : childrenComments // ignore: cast_nullable_to_non_nullable as List, ) as $Val); } } /// @nodoc abstract class _$$DatumImplCopyWith<$Res> implements $DatumCopyWith<$Res> { factory _$$DatumImplCopyWith( _$DatumImpl value, $Res Function(_$DatumImpl) then) = __$$DatumImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(name: "id") int id, @JsonKey(name: "author_name") String authorName, @JsonKey(name: "author_profile_icon") String authorProfileIcon, @JsonKey(name: "body") String body, @JsonKey(name: "children_comments") List childrenComments}); } /// @nodoc class __$$DatumImplCopyWithImpl<$Res> extends _$DatumCopyWithImpl<$Res, _$DatumImpl> implements _$$DatumImplCopyWith<$Res> { __$$DatumImplCopyWithImpl( _$DatumImpl _value, $Res Function(_$DatumImpl) _then) : super(_value, _then); /// Create a copy of Datum /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? authorName = null, Object? authorProfileIcon = null, Object? body = null, Object? childrenComments = null, }) { return _then(_$DatumImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, authorName: null == authorName ? _value.authorName : authorName // ignore: cast_nullable_to_non_nullable as String, authorProfileIcon: null == authorProfileIcon ? _value.authorProfileIcon : authorProfileIcon // ignore: cast_nullable_to_non_nullable as String, body: null == body ? _value.body : body // ignore: cast_nullable_to_non_nullable as String, childrenComments: null == childrenComments ? _value._childrenComments : childrenComments // ignore: cast_nullable_to_non_nullable as List, )); } } /// @nodoc @JsonSerializable() class _$DatumImpl implements _Datum { const _$DatumImpl( {@JsonKey(name: "id") required this.id, @JsonKey(name: "author_name") required this.authorName, @JsonKey(name: "author_profile_icon") required this.authorProfileIcon, @JsonKey(name: "body") required this.body, @JsonKey(name: "children_comments") required final List childrenComments}) : _childrenComments = childrenComments; factory _$DatumImpl.fromJson(Map json) => _$$DatumImplFromJson(json); @override @JsonKey(name: "id") final int id; @override @JsonKey(name: "author_name") final String authorName; @override @JsonKey(name: "author_profile_icon") final String authorProfileIcon; @override @JsonKey(name: "body") final String body; final List _childrenComments; @override @JsonKey(name: "children_comments") List get childrenComments { if (_childrenComments is EqualUnmodifiableListView) return _childrenComments; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_childrenComments); } @override String toString() { return 'Datum(id: $id, authorName: $authorName, authorProfileIcon: $authorProfileIcon, body: $body, childrenComments: $childrenComments)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DatumImpl && (identical(other.id, id) || other.id == id) && (identical(other.authorName, authorName) || other.authorName == authorName) && (identical(other.authorProfileIcon, authorProfileIcon) || other.authorProfileIcon == authorProfileIcon) && (identical(other.body, body) || other.body == body) && const DeepCollectionEquality() .equals(other._childrenComments, _childrenComments)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, id, authorName, authorProfileIcon, body, const DeepCollectionEquality().hash(_childrenComments)); /// Create a copy of Datum /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$DatumImplCopyWith<_$DatumImpl> get copyWith => __$$DatumImplCopyWithImpl<_$DatumImpl>(this, _$identity); @override Map toJson() { return _$$DatumImplToJson( this, ); } } abstract class _Datum implements Datum { const factory _Datum( {@JsonKey(name: "id") required final int id, @JsonKey(name: "author_name") required final String authorName, @JsonKey(name: "author_profile_icon") required final String authorProfileIcon, @JsonKey(name: "body") required final String body, @JsonKey(name: "children_comments") required final List childrenComments}) = _$DatumImpl; factory _Datum.fromJson(Map json) = _$DatumImpl.fromJson; @override @JsonKey(name: "id") int get id; @override @JsonKey(name: "author_name") String get authorName; @override @JsonKey(name: "author_profile_icon") String get authorProfileIcon; @override @JsonKey(name: "body") String get body; @override @JsonKey(name: "children_comments") List get childrenComments; /// Create a copy of Datum /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$DatumImplCopyWith<_$DatumImpl> get copyWith => throw _privateConstructorUsedError; } Links _$LinksFromJson(Map json) { return _Links.fromJson(json); } /// @nodoc mixin _$Links { @JsonKey(name: "first") String get first => throw _privateConstructorUsedError; @JsonKey(name: "last") String get last => throw _privateConstructorUsedError; @JsonKey(name: "prev") dynamic get prev => throw _privateConstructorUsedError; @JsonKey(name: "next") dynamic get next => throw _privateConstructorUsedError; /// Serializes this Links to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of Links /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $LinksCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $LinksCopyWith<$Res> { factory $LinksCopyWith(Links value, $Res Function(Links) then) = _$LinksCopyWithImpl<$Res, Links>; @useResult $Res call( {@JsonKey(name: "first") String first, @JsonKey(name: "last") String last, @JsonKey(name: "prev") dynamic prev, @JsonKey(name: "next") dynamic next}); } /// @nodoc class _$LinksCopyWithImpl<$Res, $Val extends Links> implements $LinksCopyWith<$Res> { _$LinksCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of Links /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? first = null, Object? last = null, Object? prev = freezed, Object? next = freezed, }) { return _then(_value.copyWith( first: null == first ? _value.first : first // ignore: cast_nullable_to_non_nullable as String, last: null == last ? _value.last : last // ignore: cast_nullable_to_non_nullable as String, prev: freezed == prev ? _value.prev : prev // ignore: cast_nullable_to_non_nullable as dynamic, next: freezed == next ? _value.next : next // ignore: cast_nullable_to_non_nullable as dynamic, ) as $Val); } } /// @nodoc abstract class _$$LinksImplCopyWith<$Res> implements $LinksCopyWith<$Res> { factory _$$LinksImplCopyWith( _$LinksImpl value, $Res Function(_$LinksImpl) then) = __$$LinksImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(name: "first") String first, @JsonKey(name: "last") String last, @JsonKey(name: "prev") dynamic prev, @JsonKey(name: "next") dynamic next}); } /// @nodoc class __$$LinksImplCopyWithImpl<$Res> extends _$LinksCopyWithImpl<$Res, _$LinksImpl> implements _$$LinksImplCopyWith<$Res> { __$$LinksImplCopyWithImpl( _$LinksImpl _value, $Res Function(_$LinksImpl) _then) : super(_value, _then); /// Create a copy of Links /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? first = null, Object? last = null, Object? prev = freezed, Object? next = freezed, }) { return _then(_$LinksImpl( first: null == first ? _value.first : first // ignore: cast_nullable_to_non_nullable as String, last: null == last ? _value.last : last // ignore: cast_nullable_to_non_nullable as String, prev: freezed == prev ? _value.prev : prev // ignore: cast_nullable_to_non_nullable as dynamic, next: freezed == next ? _value.next : next // ignore: cast_nullable_to_non_nullable as dynamic, )); } } /// @nodoc @JsonSerializable() class _$LinksImpl implements _Links { const _$LinksImpl( {@JsonKey(name: "first") required this.first, @JsonKey(name: "last") required this.last, @JsonKey(name: "prev") required this.prev, @JsonKey(name: "next") required this.next}); factory _$LinksImpl.fromJson(Map json) => _$$LinksImplFromJson(json); @override @JsonKey(name: "first") final String first; @override @JsonKey(name: "last") final String last; @override @JsonKey(name: "prev") final dynamic prev; @override @JsonKey(name: "next") final dynamic next; @override String toString() { return 'Links(first: $first, last: $last, prev: $prev, next: $next)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$LinksImpl && (identical(other.first, first) || other.first == first) && (identical(other.last, last) || other.last == last) && const DeepCollectionEquality().equals(other.prev, prev) && const DeepCollectionEquality().equals(other.next, next)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, first, last, const DeepCollectionEquality().hash(prev), const DeepCollectionEquality().hash(next)); /// Create a copy of Links /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$LinksImplCopyWith<_$LinksImpl> get copyWith => __$$LinksImplCopyWithImpl<_$LinksImpl>(this, _$identity); @override Map toJson() { return _$$LinksImplToJson( this, ); } } abstract class _Links implements Links { const factory _Links( {@JsonKey(name: "first") required final String first, @JsonKey(name: "last") required final String last, @JsonKey(name: "prev") required final dynamic prev, @JsonKey(name: "next") required final dynamic next}) = _$LinksImpl; factory _Links.fromJson(Map json) = _$LinksImpl.fromJson; @override @JsonKey(name: "first") String get first; @override @JsonKey(name: "last") String get last; @override @JsonKey(name: "prev") dynamic get prev; @override @JsonKey(name: "next") dynamic get next; /// Create a copy of Links /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$LinksImplCopyWith<_$LinksImpl> get copyWith => throw _privateConstructorUsedError; } Meta _$MetaFromJson(Map json) { return _Meta.fromJson(json); } /// @nodoc mixin _$Meta { @JsonKey(name: "current_page") int get currentPage => throw _privateConstructorUsedError; @JsonKey(name: "from") int get from => throw _privateConstructorUsedError; @JsonKey(name: "last_page") int get lastPage => throw _privateConstructorUsedError; @JsonKey(name: "links") List get links => throw _privateConstructorUsedError; @JsonKey(name: "path") String get path => throw _privateConstructorUsedError; @JsonKey(name: "per_page") int get perPage => throw _privateConstructorUsedError; @JsonKey(name: "to") int get to => throw _privateConstructorUsedError; @JsonKey(name: "total") int get total => throw _privateConstructorUsedError; /// Serializes this Meta to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of Meta /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $MetaCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $MetaCopyWith<$Res> { factory $MetaCopyWith(Meta value, $Res Function(Meta) then) = _$MetaCopyWithImpl<$Res, Meta>; @useResult $Res call( {@JsonKey(name: "current_page") int currentPage, @JsonKey(name: "from") int from, @JsonKey(name: "last_page") int lastPage, @JsonKey(name: "links") List links, @JsonKey(name: "path") String path, @JsonKey(name: "per_page") int perPage, @JsonKey(name: "to") int to, @JsonKey(name: "total") int total}); } /// @nodoc class _$MetaCopyWithImpl<$Res, $Val extends Meta> implements $MetaCopyWith<$Res> { _$MetaCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of Meta /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? currentPage = null, Object? from = null, Object? lastPage = null, Object? links = null, Object? path = null, Object? perPage = null, Object? to = null, Object? total = null, }) { return _then(_value.copyWith( currentPage: null == currentPage ? _value.currentPage : currentPage // ignore: cast_nullable_to_non_nullable as int, from: null == from ? _value.from : from // ignore: cast_nullable_to_non_nullable as int, lastPage: null == lastPage ? _value.lastPage : lastPage // ignore: cast_nullable_to_non_nullable as int, links: null == links ? _value.links : links // ignore: cast_nullable_to_non_nullable as List, path: null == path ? _value.path : path // ignore: cast_nullable_to_non_nullable as String, perPage: null == perPage ? _value.perPage : perPage // ignore: cast_nullable_to_non_nullable as int, to: null == to ? _value.to : to // ignore: cast_nullable_to_non_nullable as int, total: null == total ? _value.total : total // ignore: cast_nullable_to_non_nullable as int, ) as $Val); } } /// @nodoc abstract class _$$MetaImplCopyWith<$Res> implements $MetaCopyWith<$Res> { factory _$$MetaImplCopyWith( _$MetaImpl value, $Res Function(_$MetaImpl) then) = __$$MetaImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(name: "current_page") int currentPage, @JsonKey(name: "from") int from, @JsonKey(name: "last_page") int lastPage, @JsonKey(name: "links") List links, @JsonKey(name: "path") String path, @JsonKey(name: "per_page") int perPage, @JsonKey(name: "to") int to, @JsonKey(name: "total") int total}); } /// @nodoc class __$$MetaImplCopyWithImpl<$Res> extends _$MetaCopyWithImpl<$Res, _$MetaImpl> implements _$$MetaImplCopyWith<$Res> { __$$MetaImplCopyWithImpl(_$MetaImpl _value, $Res Function(_$MetaImpl) _then) : super(_value, _then); /// Create a copy of Meta /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? currentPage = null, Object? from = null, Object? lastPage = null, Object? links = null, Object? path = null, Object? perPage = null, Object? to = null, Object? total = null, }) { return _then(_$MetaImpl( currentPage: null == currentPage ? _value.currentPage : currentPage // ignore: cast_nullable_to_non_nullable as int, from: null == from ? _value.from : from // ignore: cast_nullable_to_non_nullable as int, lastPage: null == lastPage ? _value.lastPage : lastPage // ignore: cast_nullable_to_non_nullable as int, links: null == links ? _value._links : links // ignore: cast_nullable_to_non_nullable as List, path: null == path ? _value.path : path // ignore: cast_nullable_to_non_nullable as String, perPage: null == perPage ? _value.perPage : perPage // ignore: cast_nullable_to_non_nullable as int, to: null == to ? _value.to : to // ignore: cast_nullable_to_non_nullable as int, total: null == total ? _value.total : total // ignore: cast_nullable_to_non_nullable as int, )); } } /// @nodoc @JsonSerializable() class _$MetaImpl implements _Meta { const _$MetaImpl( {@JsonKey(name: "current_page") required this.currentPage, @JsonKey(name: "from") required this.from, @JsonKey(name: "last_page") required this.lastPage, @JsonKey(name: "links") required final List links, @JsonKey(name: "path") required this.path, @JsonKey(name: "per_page") required this.perPage, @JsonKey(name: "to") required this.to, @JsonKey(name: "total") required this.total}) : _links = links; factory _$MetaImpl.fromJson(Map json) => _$$MetaImplFromJson(json); @override @JsonKey(name: "current_page") final int currentPage; @override @JsonKey(name: "from") final int from; @override @JsonKey(name: "last_page") final int lastPage; final List _links; @override @JsonKey(name: "links") List get links { if (_links is EqualUnmodifiableListView) return _links; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_links); } @override @JsonKey(name: "path") final String path; @override @JsonKey(name: "per_page") final int perPage; @override @JsonKey(name: "to") final int to; @override @JsonKey(name: "total") final int total; @override String toString() { return 'Meta(currentPage: $currentPage, from: $from, lastPage: $lastPage, links: $links, path: $path, perPage: $perPage, to: $to, total: $total)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$MetaImpl && (identical(other.currentPage, currentPage) || other.currentPage == currentPage) && (identical(other.from, from) || other.from == from) && (identical(other.lastPage, lastPage) || other.lastPage == lastPage) && const DeepCollectionEquality().equals(other._links, _links) && (identical(other.path, path) || other.path == path) && (identical(other.perPage, perPage) || other.perPage == perPage) && (identical(other.to, to) || other.to == to) && (identical(other.total, total) || other.total == total)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, currentPage, from, lastPage, const DeepCollectionEquality().hash(_links), path, perPage, to, total); /// Create a copy of Meta /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$MetaImplCopyWith<_$MetaImpl> get copyWith => __$$MetaImplCopyWithImpl<_$MetaImpl>(this, _$identity); @override Map toJson() { return _$$MetaImplToJson( this, ); } } abstract class _Meta implements Meta { const factory _Meta( {@JsonKey(name: "current_page") required final int currentPage, @JsonKey(name: "from") required final int from, @JsonKey(name: "last_page") required final int lastPage, @JsonKey(name: "links") required final List links, @JsonKey(name: "path") required final String path, @JsonKey(name: "per_page") required final int perPage, @JsonKey(name: "to") required final int to, @JsonKey(name: "total") required final int total}) = _$MetaImpl; factory _Meta.fromJson(Map json) = _$MetaImpl.fromJson; @override @JsonKey(name: "current_page") int get currentPage; @override @JsonKey(name: "from") int get from; @override @JsonKey(name: "last_page") int get lastPage; @override @JsonKey(name: "links") List get links; @override @JsonKey(name: "path") String get path; @override @JsonKey(name: "per_page") int get perPage; @override @JsonKey(name: "to") int get to; @override @JsonKey(name: "total") int get total; /// Create a copy of Meta /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$MetaImplCopyWith<_$MetaImpl> get copyWith => throw _privateConstructorUsedError; } Link _$LinkFromJson(Map json) { return _Link.fromJson(json); } /// @nodoc mixin _$Link { @JsonKey(name: "url") String? get url => throw _privateConstructorUsedError; @JsonKey(name: "label") String get label => throw _privateConstructorUsedError; @JsonKey(name: "active") bool get active => throw _privateConstructorUsedError; /// Serializes this Link to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of Link /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $LinkCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $LinkCopyWith<$Res> { factory $LinkCopyWith(Link value, $Res Function(Link) then) = _$LinkCopyWithImpl<$Res, Link>; @useResult $Res call( {@JsonKey(name: "url") String? url, @JsonKey(name: "label") String label, @JsonKey(name: "active") bool active}); } /// @nodoc class _$LinkCopyWithImpl<$Res, $Val extends Link> implements $LinkCopyWith<$Res> { _$LinkCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of Link /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? url = freezed, Object? label = null, Object? active = null, }) { return _then(_value.copyWith( url: freezed == url ? _value.url : url // ignore: cast_nullable_to_non_nullable as String?, label: null == label ? _value.label : label // ignore: cast_nullable_to_non_nullable as String, active: null == active ? _value.active : active // ignore: cast_nullable_to_non_nullable as bool, ) as $Val); } } /// @nodoc abstract class _$$LinkImplCopyWith<$Res> implements $LinkCopyWith<$Res> { factory _$$LinkImplCopyWith( _$LinkImpl value, $Res Function(_$LinkImpl) then) = __$$LinkImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(name: "url") String? url, @JsonKey(name: "label") String label, @JsonKey(name: "active") bool active}); } /// @nodoc class __$$LinkImplCopyWithImpl<$Res> extends _$LinkCopyWithImpl<$Res, _$LinkImpl> implements _$$LinkImplCopyWith<$Res> { __$$LinkImplCopyWithImpl(_$LinkImpl _value, $Res Function(_$LinkImpl) _then) : super(_value, _then); /// Create a copy of Link /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? url = freezed, Object? label = null, Object? active = null, }) { return _then(_$LinkImpl( url: freezed == url ? _value.url : url // ignore: cast_nullable_to_non_nullable as String?, label: null == label ? _value.label : label // ignore: cast_nullable_to_non_nullable as String, active: null == active ? _value.active : active // ignore: cast_nullable_to_non_nullable as bool, )); } } /// @nodoc @JsonSerializable() class _$LinkImpl implements _Link { const _$LinkImpl( {@JsonKey(name: "url") required this.url, @JsonKey(name: "label") required this.label, @JsonKey(name: "active") required this.active}); factory _$LinkImpl.fromJson(Map json) => _$$LinkImplFromJson(json); @override @JsonKey(name: "url") final String? url; @override @JsonKey(name: "label") final String label; @override @JsonKey(name: "active") final bool active; @override String toString() { return 'Link(url: $url, label: $label, active: $active)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$LinkImpl && (identical(other.url, url) || other.url == url) && (identical(other.label, label) || other.label == label) && (identical(other.active, active) || other.active == active)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, url, label, active); /// Create a copy of Link /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$LinkImplCopyWith<_$LinkImpl> get copyWith => __$$LinkImplCopyWithImpl<_$LinkImpl>(this, _$identity); @override Map toJson() { return _$$LinkImplToJson( this, ); } } abstract class _Link implements Link { const factory _Link( {@JsonKey(name: "url") required final String? url, @JsonKey(name: "label") required final String label, @JsonKey(name: "active") required final bool active}) = _$LinkImpl; factory _Link.fromJson(Map json) = _$LinkImpl.fromJson; @override @JsonKey(name: "url") String? get url; @override @JsonKey(name: "label") String get label; @override @JsonKey(name: "active") bool get active; /// Create a copy of Link /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$LinkImplCopyWith<_$LinkImpl> get copyWith => throw _privateConstructorUsedError; }