// dart format width=80 // 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 'poetry.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** // dart format off T _$identity(T value) => value; /// @nodoc mixin _$Poetry implements DiagnosticableTreeMixin { int get id; String get title; String get content; int get authorId; String get authorName; String get authorAvatar; String get authorBio; int get dynastyId; String get dynastyName; int get favorNum; int get shareNum; int get commentNum; int get collectNum; int get sealNum; int get honorPoints; int get version; bool get deleted; bool get favored; /// Create a copy of Poetry /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $PoetryCopyWith get copyWith => _$PoetryCopyWithImpl(this as Poetry, _$identity); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { properties ..add(DiagnosticsProperty('type', 'Poetry')) ..add(DiagnosticsProperty('id', id))..add(DiagnosticsProperty('title', title))..add(DiagnosticsProperty('content', content))..add(DiagnosticsProperty('authorId', authorId))..add(DiagnosticsProperty('authorName', authorName))..add(DiagnosticsProperty('authorAvatar', authorAvatar))..add(DiagnosticsProperty('authorBio', authorBio))..add(DiagnosticsProperty('dynastyId', dynastyId))..add(DiagnosticsProperty('dynastyName', dynastyName))..add(DiagnosticsProperty('favorNum', favorNum))..add(DiagnosticsProperty('shareNum', shareNum))..add(DiagnosticsProperty('commentNum', commentNum))..add(DiagnosticsProperty('collectNum', collectNum))..add(DiagnosticsProperty('sealNum', sealNum))..add(DiagnosticsProperty('honorPoints', honorPoints))..add(DiagnosticsProperty('version', version))..add(DiagnosticsProperty('deleted', deleted))..add(DiagnosticsProperty('favored', favored)); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is Poetry&&(identical(other.id, id) || other.id == id)&&(identical(other.title, title) || other.title == title)&&(identical(other.content, content) || other.content == content)&&(identical(other.authorId, authorId) || other.authorId == authorId)&&(identical(other.authorName, authorName) || other.authorName == authorName)&&(identical(other.authorAvatar, authorAvatar) || other.authorAvatar == authorAvatar)&&(identical(other.authorBio, authorBio) || other.authorBio == authorBio)&&(identical(other.dynastyId, dynastyId) || other.dynastyId == dynastyId)&&(identical(other.dynastyName, dynastyName) || other.dynastyName == dynastyName)&&(identical(other.favorNum, favorNum) || other.favorNum == favorNum)&&(identical(other.shareNum, shareNum) || other.shareNum == shareNum)&&(identical(other.commentNum, commentNum) || other.commentNum == commentNum)&&(identical(other.collectNum, collectNum) || other.collectNum == collectNum)&&(identical(other.sealNum, sealNum) || other.sealNum == sealNum)&&(identical(other.honorPoints, honorPoints) || other.honorPoints == honorPoints)&&(identical(other.version, version) || other.version == version)&&(identical(other.deleted, deleted) || other.deleted == deleted)&&(identical(other.favored, favored) || other.favored == favored)); } @override int get hashCode => Object.hash(runtimeType,id,title,content,authorId,authorName,authorAvatar,authorBio,dynastyId,dynastyName,favorNum,shareNum,commentNum,collectNum,sealNum,honorPoints,version,deleted,favored); @override String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) { return 'Poetry(id: $id, title: $title, content: $content, authorId: $authorId, authorName: $authorName, authorAvatar: $authorAvatar, authorBio: $authorBio, dynastyId: $dynastyId, dynastyName: $dynastyName, favorNum: $favorNum, shareNum: $shareNum, commentNum: $commentNum, collectNum: $collectNum, sealNum: $sealNum, honorPoints: $honorPoints, version: $version, deleted: $deleted, favored: $favored)'; } } /// @nodoc abstract mixin class $PoetryCopyWith<$Res> { factory $PoetryCopyWith(Poetry value, $Res Function(Poetry) _then) = _$PoetryCopyWithImpl; @useResult $Res call({ int id, String title, String content, int authorId, String authorName, String authorAvatar, String authorBio, int dynastyId, String dynastyName, int favorNum, int shareNum, int commentNum, int collectNum, int sealNum, int honorPoints, int version, bool deleted, bool favored }); } /// @nodoc class _$PoetryCopyWithImpl<$Res> implements $PoetryCopyWith<$Res> { _$PoetryCopyWithImpl(this._self, this._then); final Poetry _self; final $Res Function(Poetry) _then; /// Create a copy of Poetry /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? id = null,Object? title = null,Object? content = null,Object? authorId = null,Object? authorName = null,Object? authorAvatar = null,Object? authorBio = null,Object? dynastyId = null,Object? dynastyName = null,Object? favorNum = null,Object? shareNum = null,Object? commentNum = null,Object? collectNum = null,Object? sealNum = null,Object? honorPoints = null,Object? version = null,Object? deleted = null,Object? favored = null,}) { return _then(_self.copyWith( id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as int,title: null == title ? _self.title : title // ignore: cast_nullable_to_non_nullable as String,content: null == content ? _self.content : content // ignore: cast_nullable_to_non_nullable as String,authorId: null == authorId ? _self.authorId : authorId // ignore: cast_nullable_to_non_nullable as int,authorName: null == authorName ? _self.authorName : authorName // ignore: cast_nullable_to_non_nullable as String,authorAvatar: null == authorAvatar ? _self.authorAvatar : authorAvatar // ignore: cast_nullable_to_non_nullable as String,authorBio: null == authorBio ? _self.authorBio : authorBio // ignore: cast_nullable_to_non_nullable as String,dynastyId: null == dynastyId ? _self.dynastyId : dynastyId // ignore: cast_nullable_to_non_nullable as int,dynastyName: null == dynastyName ? _self.dynastyName : dynastyName // ignore: cast_nullable_to_non_nullable as String,favorNum: null == favorNum ? _self.favorNum : favorNum // ignore: cast_nullable_to_non_nullable as int,shareNum: null == shareNum ? _self.shareNum : shareNum // ignore: cast_nullable_to_non_nullable as int,commentNum: null == commentNum ? _self.commentNum : commentNum // ignore: cast_nullable_to_non_nullable as int,collectNum: null == collectNum ? _self.collectNum : collectNum // ignore: cast_nullable_to_non_nullable as int,sealNum: null == sealNum ? _self.sealNum : sealNum // ignore: cast_nullable_to_non_nullable as int,honorPoints: null == honorPoints ? _self.honorPoints : honorPoints // ignore: cast_nullable_to_non_nullable as int,version: null == version ? _self.version : version // ignore: cast_nullable_to_non_nullable as int,deleted: null == deleted ? _self.deleted : deleted // ignore: cast_nullable_to_non_nullable as bool,favored: null == favored ? _self.favored : favored // ignore: cast_nullable_to_non_nullable as bool, )); } } /// @nodoc @JsonSerializable(fieldRename: FieldRename.snake) class _Poetry with DiagnosticableTreeMixin implements Poetry { const _Poetry({this.id = 0, this.title = '', this.content = '', this.authorId = 0, this.authorName = '', this.authorAvatar = '', this.authorBio = '', this.dynastyId = 0, this.dynastyName = '', this.favorNum = 0, this.shareNum = 0, this.commentNum = 0, this.collectNum = 0, this.sealNum = 0, this.honorPoints = 0, this.version = 0, this.deleted = false, this.favored = false}); @override@JsonKey() final int id; @override@JsonKey() final String title; @override@JsonKey() final String content; @override@JsonKey() final int authorId; @override@JsonKey() final String authorName; @override@JsonKey() final String authorAvatar; @override@JsonKey() final String authorBio; @override@JsonKey() final int dynastyId; @override@JsonKey() final String dynastyName; @override@JsonKey() final int favorNum; @override@JsonKey() final int shareNum; @override@JsonKey() final int commentNum; @override@JsonKey() final int collectNum; @override@JsonKey() final int sealNum; @override@JsonKey() final int honorPoints; @override@JsonKey() final int version; @override@JsonKey() final bool deleted; @override@JsonKey() final bool favored; /// Create a copy of Poetry /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$PoetryCopyWith<_Poetry> get copyWith => __$PoetryCopyWithImpl<_Poetry>(this, _$identity); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { properties ..add(DiagnosticsProperty('type', 'Poetry')) ..add(DiagnosticsProperty('id', id))..add(DiagnosticsProperty('title', title))..add(DiagnosticsProperty('content', content))..add(DiagnosticsProperty('authorId', authorId))..add(DiagnosticsProperty('authorName', authorName))..add(DiagnosticsProperty('authorAvatar', authorAvatar))..add(DiagnosticsProperty('authorBio', authorBio))..add(DiagnosticsProperty('dynastyId', dynastyId))..add(DiagnosticsProperty('dynastyName', dynastyName))..add(DiagnosticsProperty('favorNum', favorNum))..add(DiagnosticsProperty('shareNum', shareNum))..add(DiagnosticsProperty('commentNum', commentNum))..add(DiagnosticsProperty('collectNum', collectNum))..add(DiagnosticsProperty('sealNum', sealNum))..add(DiagnosticsProperty('honorPoints', honorPoints))..add(DiagnosticsProperty('version', version))..add(DiagnosticsProperty('deleted', deleted))..add(DiagnosticsProperty('favored', favored)); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _Poetry&&(identical(other.id, id) || other.id == id)&&(identical(other.title, title) || other.title == title)&&(identical(other.content, content) || other.content == content)&&(identical(other.authorId, authorId) || other.authorId == authorId)&&(identical(other.authorName, authorName) || other.authorName == authorName)&&(identical(other.authorAvatar, authorAvatar) || other.authorAvatar == authorAvatar)&&(identical(other.authorBio, authorBio) || other.authorBio == authorBio)&&(identical(other.dynastyId, dynastyId) || other.dynastyId == dynastyId)&&(identical(other.dynastyName, dynastyName) || other.dynastyName == dynastyName)&&(identical(other.favorNum, favorNum) || other.favorNum == favorNum)&&(identical(other.shareNum, shareNum) || other.shareNum == shareNum)&&(identical(other.commentNum, commentNum) || other.commentNum == commentNum)&&(identical(other.collectNum, collectNum) || other.collectNum == collectNum)&&(identical(other.sealNum, sealNum) || other.sealNum == sealNum)&&(identical(other.honorPoints, honorPoints) || other.honorPoints == honorPoints)&&(identical(other.version, version) || other.version == version)&&(identical(other.deleted, deleted) || other.deleted == deleted)&&(identical(other.favored, favored) || other.favored == favored)); } @override int get hashCode => Object.hash(runtimeType,id,title,content,authorId,authorName,authorAvatar,authorBio,dynastyId,dynastyName,favorNum,shareNum,commentNum,collectNum,sealNum,honorPoints,version,deleted,favored); @override String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) { return 'Poetry(id: $id, title: $title, content: $content, authorId: $authorId, authorName: $authorName, authorAvatar: $authorAvatar, authorBio: $authorBio, dynastyId: $dynastyId, dynastyName: $dynastyName, favorNum: $favorNum, shareNum: $shareNum, commentNum: $commentNum, collectNum: $collectNum, sealNum: $sealNum, honorPoints: $honorPoints, version: $version, deleted: $deleted, favored: $favored)'; } } /// @nodoc abstract mixin class _$PoetryCopyWith<$Res> implements $PoetryCopyWith<$Res> { factory _$PoetryCopyWith(_Poetry value, $Res Function(_Poetry) _then) = __$PoetryCopyWithImpl; @override @useResult $Res call({ int id, String title, String content, int authorId, String authorName, String authorAvatar, String authorBio, int dynastyId, String dynastyName, int favorNum, int shareNum, int commentNum, int collectNum, int sealNum, int honorPoints, int version, bool deleted, bool favored }); } /// @nodoc class __$PoetryCopyWithImpl<$Res> implements _$PoetryCopyWith<$Res> { __$PoetryCopyWithImpl(this._self, this._then); final _Poetry _self; final $Res Function(_Poetry) _then; /// Create a copy of Poetry /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? id = null,Object? title = null,Object? content = null,Object? authorId = null,Object? authorName = null,Object? authorAvatar = null,Object? authorBio = null,Object? dynastyId = null,Object? dynastyName = null,Object? favorNum = null,Object? shareNum = null,Object? commentNum = null,Object? collectNum = null,Object? sealNum = null,Object? honorPoints = null,Object? version = null,Object? deleted = null,Object? favored = null,}) { return _then(_Poetry( id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as int,title: null == title ? _self.title : title // ignore: cast_nullable_to_non_nullable as String,content: null == content ? _self.content : content // ignore: cast_nullable_to_non_nullable as String,authorId: null == authorId ? _self.authorId : authorId // ignore: cast_nullable_to_non_nullable as int,authorName: null == authorName ? _self.authorName : authorName // ignore: cast_nullable_to_non_nullable as String,authorAvatar: null == authorAvatar ? _self.authorAvatar : authorAvatar // ignore: cast_nullable_to_non_nullable as String,authorBio: null == authorBio ? _self.authorBio : authorBio // ignore: cast_nullable_to_non_nullable as String,dynastyId: null == dynastyId ? _self.dynastyId : dynastyId // ignore: cast_nullable_to_non_nullable as int,dynastyName: null == dynastyName ? _self.dynastyName : dynastyName // ignore: cast_nullable_to_non_nullable as String,favorNum: null == favorNum ? _self.favorNum : favorNum // ignore: cast_nullable_to_non_nullable as int,shareNum: null == shareNum ? _self.shareNum : shareNum // ignore: cast_nullable_to_non_nullable as int,commentNum: null == commentNum ? _self.commentNum : commentNum // ignore: cast_nullable_to_non_nullable as int,collectNum: null == collectNum ? _self.collectNum : collectNum // ignore: cast_nullable_to_non_nullable as int,sealNum: null == sealNum ? _self.sealNum : sealNum // ignore: cast_nullable_to_non_nullable as int,honorPoints: null == honorPoints ? _self.honorPoints : honorPoints // ignore: cast_nullable_to_non_nullable as int,version: null == version ? _self.version : version // ignore: cast_nullable_to_non_nullable as int,deleted: null == deleted ? _self.deleted : deleted // ignore: cast_nullable_to_non_nullable as bool,favored: null == favored ? _self.favored : favored // ignore: cast_nullable_to_non_nullable as bool, )); } } // dart format on