2022-06-17 13:18:44 +00:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
// @dart=2.7
|
|
|
|
|
|
|
|
part of 'stream_item.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// BuiltValueGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
class _$StreamItem extends StreamItem {
|
|
|
|
@override
|
|
|
|
final int duration;
|
|
|
|
@override
|
|
|
|
final String thumbnail;
|
|
|
|
@override
|
|
|
|
final String title;
|
|
|
|
@override
|
|
|
|
final int uploaded;
|
|
|
|
@override
|
|
|
|
final String uploadedDate;
|
|
|
|
@override
|
|
|
|
final String uploaderAvatar;
|
|
|
|
@override
|
|
|
|
final String uploaderName;
|
|
|
|
@override
|
|
|
|
final String uploaderUrl;
|
|
|
|
@override
|
|
|
|
final bool uploaderVerified;
|
|
|
|
@override
|
|
|
|
final String url;
|
|
|
|
@override
|
|
|
|
final int views;
|
|
|
|
|
|
|
|
factory _$StreamItem([void Function(StreamItemBuilder) updates]) =>
|
2022-10-10 09:50:22 +00:00
|
|
|
(new StreamItemBuilder()..update(updates))._build();
|
2022-06-17 13:18:44 +00:00
|
|
|
|
|
|
|
_$StreamItem._(
|
|
|
|
{this.duration,
|
|
|
|
this.thumbnail,
|
|
|
|
this.title,
|
|
|
|
this.uploaded,
|
|
|
|
this.uploadedDate,
|
|
|
|
this.uploaderAvatar,
|
|
|
|
this.uploaderName,
|
|
|
|
this.uploaderUrl,
|
|
|
|
this.uploaderVerified,
|
|
|
|
this.url,
|
|
|
|
this.views})
|
|
|
|
: super._() {
|
2022-10-10 09:50:22 +00:00
|
|
|
BuiltValueNullFieldError.checkNotNull(duration, r'StreamItem', 'duration');
|
|
|
|
BuiltValueNullFieldError.checkNotNull(
|
|
|
|
thumbnail, r'StreamItem', 'thumbnail');
|
|
|
|
BuiltValueNullFieldError.checkNotNull(title, r'StreamItem', 'title');
|
|
|
|
BuiltValueNullFieldError.checkNotNull(url, r'StreamItem', 'url');
|
2022-06-17 13:18:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
StreamItem rebuild(void Function(StreamItemBuilder) updates) =>
|
|
|
|
(toBuilder()..update(updates)).build();
|
|
|
|
|
|
|
|
@override
|
|
|
|
StreamItemBuilder toBuilder() => new StreamItemBuilder()..replace(this);
|
|
|
|
|
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
if (identical(other, this)) return true;
|
|
|
|
return other is StreamItem &&
|
|
|
|
duration == other.duration &&
|
|
|
|
thumbnail == other.thumbnail &&
|
|
|
|
title == other.title &&
|
|
|
|
uploaded == other.uploaded &&
|
|
|
|
uploadedDate == other.uploadedDate &&
|
|
|
|
uploaderAvatar == other.uploaderAvatar &&
|
|
|
|
uploaderName == other.uploaderName &&
|
|
|
|
uploaderUrl == other.uploaderUrl &&
|
|
|
|
uploaderVerified == other.uploaderVerified &&
|
|
|
|
url == other.url &&
|
|
|
|
views == other.views;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
int get hashCode {
|
|
|
|
return $jf($jc(
|
|
|
|
$jc(
|
|
|
|
$jc(
|
|
|
|
$jc(
|
|
|
|
$jc(
|
|
|
|
$jc(
|
|
|
|
$jc(
|
|
|
|
$jc(
|
|
|
|
$jc(
|
|
|
|
$jc($jc(0, duration.hashCode),
|
|
|
|
thumbnail.hashCode),
|
|
|
|
title.hashCode),
|
|
|
|
uploaded.hashCode),
|
|
|
|
uploadedDate.hashCode),
|
|
|
|
uploaderAvatar.hashCode),
|
|
|
|
uploaderName.hashCode),
|
|
|
|
uploaderUrl.hashCode),
|
|
|
|
uploaderVerified.hashCode),
|
|
|
|
url.hashCode),
|
|
|
|
views.hashCode));
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
String toString() {
|
2022-10-10 09:50:22 +00:00
|
|
|
return (newBuiltValueToStringHelper(r'StreamItem')
|
2022-06-17 13:18:44 +00:00
|
|
|
..add('duration', duration)
|
|
|
|
..add('thumbnail', thumbnail)
|
|
|
|
..add('title', title)
|
|
|
|
..add('uploaded', uploaded)
|
|
|
|
..add('uploadedDate', uploadedDate)
|
|
|
|
..add('uploaderAvatar', uploaderAvatar)
|
|
|
|
..add('uploaderName', uploaderName)
|
|
|
|
..add('uploaderUrl', uploaderUrl)
|
|
|
|
..add('uploaderVerified', uploaderVerified)
|
|
|
|
..add('url', url)
|
|
|
|
..add('views', views))
|
|
|
|
.toString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class StreamItemBuilder implements Builder<StreamItem, StreamItemBuilder> {
|
|
|
|
_$StreamItem _$v;
|
|
|
|
|
|
|
|
int _duration;
|
|
|
|
int get duration => _$this._duration;
|
|
|
|
set duration(int duration) => _$this._duration = duration;
|
|
|
|
|
|
|
|
String _thumbnail;
|
|
|
|
String get thumbnail => _$this._thumbnail;
|
|
|
|
set thumbnail(String thumbnail) => _$this._thumbnail = thumbnail;
|
|
|
|
|
|
|
|
String _title;
|
|
|
|
String get title => _$this._title;
|
|
|
|
set title(String title) => _$this._title = title;
|
|
|
|
|
|
|
|
int _uploaded;
|
|
|
|
int get uploaded => _$this._uploaded;
|
|
|
|
set uploaded(int uploaded) => _$this._uploaded = uploaded;
|
|
|
|
|
|
|
|
String _uploadedDate;
|
|
|
|
String get uploadedDate => _$this._uploadedDate;
|
|
|
|
set uploadedDate(String uploadedDate) => _$this._uploadedDate = uploadedDate;
|
|
|
|
|
|
|
|
String _uploaderAvatar;
|
|
|
|
String get uploaderAvatar => _$this._uploaderAvatar;
|
|
|
|
set uploaderAvatar(String uploaderAvatar) =>
|
|
|
|
_$this._uploaderAvatar = uploaderAvatar;
|
|
|
|
|
|
|
|
String _uploaderName;
|
|
|
|
String get uploaderName => _$this._uploaderName;
|
|
|
|
set uploaderName(String uploaderName) => _$this._uploaderName = uploaderName;
|
|
|
|
|
|
|
|
String _uploaderUrl;
|
|
|
|
String get uploaderUrl => _$this._uploaderUrl;
|
|
|
|
set uploaderUrl(String uploaderUrl) => _$this._uploaderUrl = uploaderUrl;
|
|
|
|
|
|
|
|
bool _uploaderVerified;
|
|
|
|
bool get uploaderVerified => _$this._uploaderVerified;
|
|
|
|
set uploaderVerified(bool uploaderVerified) =>
|
|
|
|
_$this._uploaderVerified = uploaderVerified;
|
|
|
|
|
|
|
|
String _url;
|
|
|
|
String get url => _$this._url;
|
|
|
|
set url(String url) => _$this._url = url;
|
|
|
|
|
|
|
|
int _views;
|
|
|
|
int get views => _$this._views;
|
|
|
|
set views(int views) => _$this._views = views;
|
|
|
|
|
|
|
|
StreamItemBuilder() {
|
|
|
|
StreamItem._initializeBuilder(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
StreamItemBuilder get _$this {
|
|
|
|
final $v = _$v;
|
|
|
|
if ($v != null) {
|
|
|
|
_duration = $v.duration;
|
|
|
|
_thumbnail = $v.thumbnail;
|
|
|
|
_title = $v.title;
|
|
|
|
_uploaded = $v.uploaded;
|
|
|
|
_uploadedDate = $v.uploadedDate;
|
|
|
|
_uploaderAvatar = $v.uploaderAvatar;
|
|
|
|
_uploaderName = $v.uploaderName;
|
|
|
|
_uploaderUrl = $v.uploaderUrl;
|
|
|
|
_uploaderVerified = $v.uploaderVerified;
|
|
|
|
_url = $v.url;
|
|
|
|
_views = $v.views;
|
|
|
|
_$v = null;
|
|
|
|
}
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
void replace(StreamItem other) {
|
|
|
|
ArgumentError.checkNotNull(other, 'other');
|
|
|
|
_$v = other as _$StreamItem;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
void update(void Function(StreamItemBuilder) updates) {
|
|
|
|
if (updates != null) updates(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
2022-10-10 09:50:22 +00:00
|
|
|
StreamItem build() => _build();
|
|
|
|
|
|
|
|
_$StreamItem _build() {
|
2022-06-17 13:18:44 +00:00
|
|
|
final _$result = _$v ??
|
|
|
|
new _$StreamItem._(
|
|
|
|
duration: BuiltValueNullFieldError.checkNotNull(
|
2022-10-10 09:50:22 +00:00
|
|
|
duration, r'StreamItem', 'duration'),
|
2022-06-17 13:18:44 +00:00
|
|
|
thumbnail: BuiltValueNullFieldError.checkNotNull(
|
2022-10-10 09:50:22 +00:00
|
|
|
thumbnail, r'StreamItem', 'thumbnail'),
|
2022-06-17 13:18:44 +00:00
|
|
|
title: BuiltValueNullFieldError.checkNotNull(
|
2022-10-10 09:50:22 +00:00
|
|
|
title, r'StreamItem', 'title'),
|
2022-06-17 13:18:44 +00:00
|
|
|
uploaded: uploaded,
|
|
|
|
uploadedDate: uploadedDate,
|
|
|
|
uploaderAvatar: uploaderAvatar,
|
|
|
|
uploaderName: uploaderName,
|
|
|
|
uploaderUrl: uploaderUrl,
|
|
|
|
uploaderVerified: uploaderVerified,
|
2022-10-10 09:50:22 +00:00
|
|
|
url: BuiltValueNullFieldError.checkNotNull(
|
|
|
|
url, r'StreamItem', 'url'),
|
2022-06-17 13:18:44 +00:00
|
|
|
views: views);
|
|
|
|
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
|