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

122 lines
3.3 KiB
Dart
Raw Normal View History

2022-02-07 13:27:21 +00:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'subtitle.dart';
// **************************************************************************
// BuiltValueGenerator
// **************************************************************************
class _$Subtitle extends Subtitle {
@override
final bool? autoGenerated;
@override
final String? code;
@override
final String? mimeType;
@override
final String? url;
factory _$Subtitle([void Function(SubtitleBuilder)? updates]) =>
(new SubtitleBuilder()..update(updates)).build();
_$Subtitle._({this.autoGenerated, this.code, this.mimeType, this.url})
: super._();
@override
Subtitle rebuild(void Function(SubtitleBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
SubtitleBuilder toBuilder() => new SubtitleBuilder()..replace(this);
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is Subtitle &&
autoGenerated == other.autoGenerated &&
code == other.code &&
mimeType == other.mimeType &&
url == other.url;
}
@override
int get hashCode {
return $jf($jc(
$jc($jc($jc(0, autoGenerated.hashCode), code.hashCode),
mimeType.hashCode),
url.hashCode));
}
@override
String toString() {
return (newBuiltValueToStringHelper('Subtitle')
..add('autoGenerated', autoGenerated)
..add('code', code)
..add('mimeType', mimeType)
..add('url', url))
.toString();
}
}
class SubtitleBuilder implements Builder<Subtitle, SubtitleBuilder> {
_$Subtitle? _$v;
bool? _autoGenerated;
bool? get autoGenerated => _$this._autoGenerated;
set autoGenerated(bool? autoGenerated) =>
_$this._autoGenerated = autoGenerated;
String? _code;
String? get code => _$this._code;
set code(String? code) => _$this._code = code;
String? _mimeType;
String? get mimeType => _$this._mimeType;
set mimeType(String? mimeType) => _$this._mimeType = mimeType;
String? _url;
String? get url => _$this._url;
set url(String? url) => _$this._url = url;
SubtitleBuilder() {
Subtitle._defaults(this);
}
SubtitleBuilder get _$this {
final $v = _$v;
if ($v != null) {
_autoGenerated = $v.autoGenerated;
_code = $v.code;
_mimeType = $v.mimeType;
_url = $v.url;
_$v = null;
}
return this;
}
@override
void replace(Subtitle other) {
ArgumentError.checkNotNull(other, 'other');
_$v = other as _$Subtitle;
}
@override
void update(void Function(SubtitleBuilder)? updates) {
if (updates != null) updates(this);
}
@override
_$Subtitle build() {
final _$result = _$v ??
new _$Subtitle._(
autoGenerated: autoGenerated,
code: code,
mimeType: mimeType,
url: url);
replace(_$result);
return _$result;
}
}
// 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,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new