179 lines
4.6 KiB
Dart
179 lines
4.6 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'service.dart';
|
|
|
|
// **************************************************************************
|
|
// BuiltValueGenerator
|
|
// **************************************************************************
|
|
|
|
class _$Service extends Service {
|
|
@override
|
|
final bool active;
|
|
@override
|
|
final String id;
|
|
@override
|
|
final String key;
|
|
@override
|
|
final ServiceKind kind;
|
|
@override
|
|
final int? maxValue;
|
|
@override
|
|
final int? minValue;
|
|
@override
|
|
final String name;
|
|
@override
|
|
final int sortOrder;
|
|
|
|
factory _$Service([void Function(ServiceBuilder)? updates]) =>
|
|
(ServiceBuilder()..update(updates))._build();
|
|
|
|
_$Service._(
|
|
{required this.active,
|
|
required this.id,
|
|
required this.key,
|
|
required this.kind,
|
|
this.maxValue,
|
|
this.minValue,
|
|
required this.name,
|
|
required this.sortOrder})
|
|
: super._();
|
|
@override
|
|
Service rebuild(void Function(ServiceBuilder) updates) =>
|
|
(toBuilder()..update(updates)).build();
|
|
|
|
@override
|
|
ServiceBuilder toBuilder() => ServiceBuilder()..replace(this);
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
if (identical(other, this)) return true;
|
|
return other is Service &&
|
|
active == other.active &&
|
|
id == other.id &&
|
|
key == other.key &&
|
|
kind == other.kind &&
|
|
maxValue == other.maxValue &&
|
|
minValue == other.minValue &&
|
|
name == other.name &&
|
|
sortOrder == other.sortOrder;
|
|
}
|
|
|
|
@override
|
|
int get hashCode {
|
|
var _$hash = 0;
|
|
_$hash = $jc(_$hash, active.hashCode);
|
|
_$hash = $jc(_$hash, id.hashCode);
|
|
_$hash = $jc(_$hash, key.hashCode);
|
|
_$hash = $jc(_$hash, kind.hashCode);
|
|
_$hash = $jc(_$hash, maxValue.hashCode);
|
|
_$hash = $jc(_$hash, minValue.hashCode);
|
|
_$hash = $jc(_$hash, name.hashCode);
|
|
_$hash = $jc(_$hash, sortOrder.hashCode);
|
|
_$hash = $jf(_$hash);
|
|
return _$hash;
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (newBuiltValueToStringHelper(r'Service')
|
|
..add('active', active)
|
|
..add('id', id)
|
|
..add('key', key)
|
|
..add('kind', kind)
|
|
..add('maxValue', maxValue)
|
|
..add('minValue', minValue)
|
|
..add('name', name)
|
|
..add('sortOrder', sortOrder))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class ServiceBuilder implements Builder<Service, ServiceBuilder> {
|
|
_$Service? _$v;
|
|
|
|
bool? _active;
|
|
bool? get active => _$this._active;
|
|
set active(bool? active) => _$this._active = active;
|
|
|
|
String? _id;
|
|
String? get id => _$this._id;
|
|
set id(String? id) => _$this._id = id;
|
|
|
|
String? _key;
|
|
String? get key => _$this._key;
|
|
set key(String? key) => _$this._key = key;
|
|
|
|
ServiceKind? _kind;
|
|
ServiceKind? get kind => _$this._kind;
|
|
set kind(ServiceKind? kind) => _$this._kind = kind;
|
|
|
|
int? _maxValue;
|
|
int? get maxValue => _$this._maxValue;
|
|
set maxValue(int? maxValue) => _$this._maxValue = maxValue;
|
|
|
|
int? _minValue;
|
|
int? get minValue => _$this._minValue;
|
|
set minValue(int? minValue) => _$this._minValue = minValue;
|
|
|
|
String? _name;
|
|
String? get name => _$this._name;
|
|
set name(String? name) => _$this._name = name;
|
|
|
|
int? _sortOrder;
|
|
int? get sortOrder => _$this._sortOrder;
|
|
set sortOrder(int? sortOrder) => _$this._sortOrder = sortOrder;
|
|
|
|
ServiceBuilder() {
|
|
Service._defaults(this);
|
|
}
|
|
|
|
ServiceBuilder get _$this {
|
|
final $v = _$v;
|
|
if ($v != null) {
|
|
_active = $v.active;
|
|
_id = $v.id;
|
|
_key = $v.key;
|
|
_kind = $v.kind;
|
|
_maxValue = $v.maxValue;
|
|
_minValue = $v.minValue;
|
|
_name = $v.name;
|
|
_sortOrder = $v.sortOrder;
|
|
_$v = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@override
|
|
void replace(Service other) {
|
|
_$v = other as _$Service;
|
|
}
|
|
|
|
@override
|
|
void update(void Function(ServiceBuilder)? updates) {
|
|
if (updates != null) updates(this);
|
|
}
|
|
|
|
@override
|
|
Service build() => _build();
|
|
|
|
_$Service _build() {
|
|
final _$result = _$v ??
|
|
_$Service._(
|
|
active: BuiltValueNullFieldError.checkNotNull(
|
|
active, r'Service', 'active'),
|
|
id: BuiltValueNullFieldError.checkNotNull(id, r'Service', 'id'),
|
|
key: BuiltValueNullFieldError.checkNotNull(key, r'Service', 'key'),
|
|
kind: BuiltValueNullFieldError.checkNotNull(kind, r'Service', 'kind'),
|
|
maxValue: maxValue,
|
|
minValue: minValue,
|
|
name: BuiltValueNullFieldError.checkNotNull(name, r'Service', 'name'),
|
|
sortOrder: BuiltValueNullFieldError.checkNotNull(
|
|
sortOrder, r'Service', 'sortOrder'),
|
|
);
|
|
replace(_$result);
|
|
return _$result;
|
|
}
|
|
}
|
|
|
|
// ignore_for_file: deprecated_member_use_from_same_package,type=lint
|