piped_dart/lib/src/model/stream_item.g.dart

263 lines
7.8 KiB
Dart
Raw Normal View History

2022-02-06 12:42:24 +00:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'stream_item.dart';
// **************************************************************************
// BuiltValueGenerator
// **************************************************************************
class _$StreamItem extends StreamItem {
2023-06-09 18:59:12 +00:00
@override
final String? type;
2022-02-06 12:42:24 +00:00
@override
final int duration;
@override
final String thumbnail;
@override
final String title;
@override
2022-02-15 07:28:32 +00:00
final int? uploaded;
@override
2022-02-06 12:42:24 +00:00
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;
2023-06-09 18:59:12 +00:00
@override
final bool? isShort;
@override
final String? shortDescription;
2022-02-06 12:42:24 +00:00
factory _$StreamItem([void Function(StreamItemBuilder)? updates]) =>
2022-10-10 09:50:22 +00:00
(new StreamItemBuilder()..update(updates))._build();
2022-02-06 12:42:24 +00:00
_$StreamItem._(
2023-06-09 18:59:12 +00:00
{this.type,
required this.duration,
2022-02-06 12:42:24 +00:00
required this.thumbnail,
required this.title,
2022-02-15 07:28:32 +00:00
this.uploaded,
2022-02-06 12:42:24 +00:00
this.uploadedDate,
this.uploaderAvatar,
this.uploaderName,
this.uploaderUrl,
this.uploaderVerified,
required this.url,
2023-06-09 18:59:12 +00:00
this.views,
this.isShort,
this.shortDescription})
2022-02-06 12:42:24 +00:00
: 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-02-06 12:42:24 +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 &&
2023-06-09 18:59:12 +00:00
type == other.type &&
2022-02-06 12:42:24 +00:00
duration == other.duration &&
thumbnail == other.thumbnail &&
title == other.title &&
2022-02-15 07:28:32 +00:00
uploaded == other.uploaded &&
2022-02-06 12:42:24 +00:00
uploadedDate == other.uploadedDate &&
uploaderAvatar == other.uploaderAvatar &&
uploaderName == other.uploaderName &&
uploaderUrl == other.uploaderUrl &&
uploaderVerified == other.uploaderVerified &&
url == other.url &&
2023-06-09 18:59:12 +00:00
views == other.views &&
isShort == other.isShort &&
shortDescription == other.shortDescription;
2022-02-06 12:42:24 +00:00
}
@override
int get hashCode {
2023-06-09 18:59:12 +00:00
var _$hash = 0;
_$hash = $jc(_$hash, type.hashCode);
_$hash = $jc(_$hash, duration.hashCode);
_$hash = $jc(_$hash, thumbnail.hashCode);
_$hash = $jc(_$hash, title.hashCode);
_$hash = $jc(_$hash, uploaded.hashCode);
_$hash = $jc(_$hash, uploadedDate.hashCode);
_$hash = $jc(_$hash, uploaderAvatar.hashCode);
_$hash = $jc(_$hash, uploaderName.hashCode);
_$hash = $jc(_$hash, uploaderUrl.hashCode);
_$hash = $jc(_$hash, uploaderVerified.hashCode);
_$hash = $jc(_$hash, url.hashCode);
_$hash = $jc(_$hash, views.hashCode);
_$hash = $jc(_$hash, isShort.hashCode);
_$hash = $jc(_$hash, shortDescription.hashCode);
_$hash = $jf(_$hash);
return _$hash;
2022-02-06 12:42:24 +00:00
}
@override
String toString() {
2022-10-10 09:50:22 +00:00
return (newBuiltValueToStringHelper(r'StreamItem')
2023-06-09 18:59:12 +00:00
..add('type', type)
2022-02-06 12:42:24 +00:00
..add('duration', duration)
..add('thumbnail', thumbnail)
..add('title', title)
2022-02-15 07:28:32 +00:00
..add('uploaded', uploaded)
2022-02-06 12:42:24 +00:00
..add('uploadedDate', uploadedDate)
..add('uploaderAvatar', uploaderAvatar)
..add('uploaderName', uploaderName)
..add('uploaderUrl', uploaderUrl)
..add('uploaderVerified', uploaderVerified)
..add('url', url)
2023-06-09 18:59:12 +00:00
..add('views', views)
..add('isShort', isShort)
..add('shortDescription', shortDescription))
2022-02-06 12:42:24 +00:00
.toString();
}
}
class StreamItemBuilder implements Builder<StreamItem, StreamItemBuilder> {
_$StreamItem? _$v;
2023-06-09 18:59:12 +00:00
String? _type;
String? get type => _$this._type;
set type(String? type) => _$this._type = type;
2022-02-06 12:42:24 +00:00
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;
2022-02-15 07:28:32 +00:00
int? _uploaded;
int? get uploaded => _$this._uploaded;
set uploaded(int? uploaded) => _$this._uploaded = uploaded;
2022-02-06 12:42:24 +00:00
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;
2023-06-09 18:59:12 +00:00
bool? _isShort;
bool? get isShort => _$this._isShort;
set isShort(bool? isShort) => _$this._isShort = isShort;
String? _shortDescription;
String? get shortDescription => _$this._shortDescription;
set shortDescription(String? shortDescription) =>
_$this._shortDescription = shortDescription;
2022-02-06 12:42:24 +00:00
StreamItemBuilder() {
StreamItem._defaults(this);
}
StreamItemBuilder get _$this {
final $v = _$v;
if ($v != null) {
2023-06-09 18:59:12 +00:00
_type = $v.type;
2022-02-06 12:42:24 +00:00
_duration = $v.duration;
_thumbnail = $v.thumbnail;
_title = $v.title;
2022-02-15 07:28:32 +00:00
_uploaded = $v.uploaded;
2022-02-06 12:42:24 +00:00
_uploadedDate = $v.uploadedDate;
_uploaderAvatar = $v.uploaderAvatar;
_uploaderName = $v.uploaderName;
_uploaderUrl = $v.uploaderUrl;
_uploaderVerified = $v.uploaderVerified;
_url = $v.url;
_views = $v.views;
2023-06-09 18:59:12 +00:00
_isShort = $v.isShort;
_shortDescription = $v.shortDescription;
2022-02-06 12:42:24 +00:00
_$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-02-06 12:42:24 +00:00
final _$result = _$v ??
new _$StreamItem._(
2023-06-09 18:59:12 +00:00
type: type,
2022-02-06 12:42:24 +00:00
duration: BuiltValueNullFieldError.checkNotNull(
2022-10-10 09:50:22 +00:00
duration, r'StreamItem', 'duration'),
2022-02-06 12:42:24 +00:00
thumbnail: BuiltValueNullFieldError.checkNotNull(
2022-10-10 09:50:22 +00:00
thumbnail, r'StreamItem', 'thumbnail'),
2022-02-06 12:42:24 +00:00
title: BuiltValueNullFieldError.checkNotNull(
2022-10-10 09:50:22 +00:00
title, r'StreamItem', 'title'),
2022-02-15 07:28:32 +00:00
uploaded: uploaded,
2022-02-06 12:42:24 +00:00
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'),
2023-06-09 18:59:12 +00:00
views: views,
isShort: isShort,
shortDescription: shortDescription);
2022-02-06 12:42:24 +00:00
replace(_$result);
return _$result;
}
}
2023-06-09 18:59:12 +00:00
// ignore_for_file: deprecated_member_use_from_same_package,type=lint