piped_dart/lib/model/channel_info.g.dart

211 lines
6.1 KiB
Dart
Raw Normal View History

// GENERATED CODE - DO NOT MODIFY BY HAND
// @dart=2.7
part of 'channel_info.dart';
// **************************************************************************
// BuiltValueGenerator
// **************************************************************************
class _$ChannelInfo extends ChannelInfo {
@override
final String avatarUrl;
@override
final String bannerUrl;
@override
final String description;
@override
final String id;
@override
final String name;
@override
final String nextpage;
@override
final BuiltList<StreamItem> relatedStreams;
@override
final int subscriberCount;
@override
final bool verified;
factory _$ChannelInfo([void Function(ChannelInfoBuilder) updates]) =>
2022-10-10 09:50:22 +00:00
(new ChannelInfoBuilder()..update(updates))._build();
_$ChannelInfo._(
{this.avatarUrl,
this.bannerUrl,
this.description,
this.id,
this.name,
this.nextpage,
this.relatedStreams,
this.subscriberCount,
this.verified})
: super._();
@override
ChannelInfo rebuild(void Function(ChannelInfoBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
ChannelInfoBuilder toBuilder() => new ChannelInfoBuilder()..replace(this);
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is ChannelInfo &&
avatarUrl == other.avatarUrl &&
bannerUrl == other.bannerUrl &&
description == other.description &&
id == other.id &&
name == other.name &&
nextpage == other.nextpage &&
relatedStreams == other.relatedStreams &&
subscriberCount == other.subscriberCount &&
verified == other.verified;
}
@override
int get hashCode {
return $jf($jc(
$jc(
$jc(
$jc(
$jc(
$jc(
$jc(
$jc($jc(0, avatarUrl.hashCode),
bannerUrl.hashCode),
description.hashCode),
id.hashCode),
name.hashCode),
nextpage.hashCode),
relatedStreams.hashCode),
subscriberCount.hashCode),
verified.hashCode));
}
@override
String toString() {
2022-10-10 09:50:22 +00:00
return (newBuiltValueToStringHelper(r'ChannelInfo')
..add('avatarUrl', avatarUrl)
..add('bannerUrl', bannerUrl)
..add('description', description)
..add('id', id)
..add('name', name)
..add('nextpage', nextpage)
..add('relatedStreams', relatedStreams)
..add('subscriberCount', subscriberCount)
..add('verified', verified))
.toString();
}
}
class ChannelInfoBuilder implements Builder<ChannelInfo, ChannelInfoBuilder> {
_$ChannelInfo _$v;
String _avatarUrl;
String get avatarUrl => _$this._avatarUrl;
set avatarUrl(String avatarUrl) => _$this._avatarUrl = avatarUrl;
String _bannerUrl;
String get bannerUrl => _$this._bannerUrl;
set bannerUrl(String bannerUrl) => _$this._bannerUrl = bannerUrl;
String _description;
String get description => _$this._description;
set description(String description) => _$this._description = description;
String _id;
String get id => _$this._id;
set id(String id) => _$this._id = id;
String _name;
String get name => _$this._name;
set name(String name) => _$this._name = name;
String _nextpage;
String get nextpage => _$this._nextpage;
set nextpage(String nextpage) => _$this._nextpage = nextpage;
ListBuilder<StreamItem> _relatedStreams;
ListBuilder<StreamItem> get relatedStreams =>
_$this._relatedStreams ??= new ListBuilder<StreamItem>();
set relatedStreams(ListBuilder<StreamItem> relatedStreams) =>
_$this._relatedStreams = relatedStreams;
int _subscriberCount;
int get subscriberCount => _$this._subscriberCount;
set subscriberCount(int subscriberCount) =>
_$this._subscriberCount = subscriberCount;
bool _verified;
bool get verified => _$this._verified;
set verified(bool verified) => _$this._verified = verified;
ChannelInfoBuilder() {
ChannelInfo._initializeBuilder(this);
}
ChannelInfoBuilder get _$this {
final $v = _$v;
if ($v != null) {
_avatarUrl = $v.avatarUrl;
_bannerUrl = $v.bannerUrl;
_description = $v.description;
_id = $v.id;
_name = $v.name;
_nextpage = $v.nextpage;
_relatedStreams = $v.relatedStreams?.toBuilder();
_subscriberCount = $v.subscriberCount;
_verified = $v.verified;
_$v = null;
}
return this;
}
@override
void replace(ChannelInfo other) {
ArgumentError.checkNotNull(other, 'other');
_$v = other as _$ChannelInfo;
}
@override
void update(void Function(ChannelInfoBuilder) updates) {
if (updates != null) updates(this);
}
@override
2022-10-10 09:50:22 +00:00
ChannelInfo build() => _build();
_$ChannelInfo _build() {
_$ChannelInfo _$result;
try {
_$result = _$v ??
new _$ChannelInfo._(
avatarUrl: avatarUrl,
bannerUrl: bannerUrl,
description: description,
id: id,
name: name,
nextpage: nextpage,
relatedStreams: _relatedStreams?.build(),
subscriberCount: subscriberCount,
verified: verified);
} catch (_) {
String _$failedField;
try {
_$failedField = 'relatedStreams';
_relatedStreams?.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
2022-10-10 09:50:22 +00:00
r'ChannelInfo', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}
}
2022-10-10 09:50:22 +00:00
// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas