Add requests page Fix checkUpdate dark mode style error Fix quickStart error open app Add memory proxies tab index Support hidden group Optimize logs
1373 lines
38 KiB
Dart
1373 lines
38 KiB
Dart
// coverage:ignore-file
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
// ignore_for_file: type=lint
|
|
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
|
|
|
|
part of '../ffi.dart';
|
|
|
|
// **************************************************************************
|
|
// FreezedGenerator
|
|
// **************************************************************************
|
|
|
|
T _$identity<T>(T value) => value;
|
|
|
|
final _privateConstructorUsedError = UnsupportedError(
|
|
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
|
|
|
UpdateConfigParams _$UpdateConfigParamsFromJson(Map<String, dynamic> json) {
|
|
return _UpdateConfigParams.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$UpdateConfigParams {
|
|
@JsonKey(name: "profile-path")
|
|
String? get profilePath => throw _privateConstructorUsedError;
|
|
ClashConfig get config => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "is-patch")
|
|
bool get isPatch => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "is-compatible")
|
|
bool get isCompatible => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$UpdateConfigParamsCopyWith<UpdateConfigParams> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $UpdateConfigParamsCopyWith<$Res> {
|
|
factory $UpdateConfigParamsCopyWith(
|
|
UpdateConfigParams value, $Res Function(UpdateConfigParams) then) =
|
|
_$UpdateConfigParamsCopyWithImpl<$Res, UpdateConfigParams>;
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "profile-path") String? profilePath,
|
|
ClashConfig config,
|
|
@JsonKey(name: "is-patch") bool isPatch,
|
|
@JsonKey(name: "is-compatible") bool isCompatible});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$UpdateConfigParamsCopyWithImpl<$Res, $Val extends UpdateConfigParams>
|
|
implements $UpdateConfigParamsCopyWith<$Res> {
|
|
_$UpdateConfigParamsCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? profilePath = freezed,
|
|
Object? config = null,
|
|
Object? isPatch = null,
|
|
Object? isCompatible = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
profilePath: freezed == profilePath
|
|
? _value.profilePath
|
|
: profilePath // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
config: null == config
|
|
? _value.config
|
|
: config // ignore: cast_nullable_to_non_nullable
|
|
as ClashConfig,
|
|
isPatch: null == isPatch
|
|
? _value.isPatch
|
|
: isPatch // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
isCompatible: null == isCompatible
|
|
? _value.isCompatible
|
|
: isCompatible // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$UpdateConfigParamsImplCopyWith<$Res>
|
|
implements $UpdateConfigParamsCopyWith<$Res> {
|
|
factory _$$UpdateConfigParamsImplCopyWith(_$UpdateConfigParamsImpl value,
|
|
$Res Function(_$UpdateConfigParamsImpl) then) =
|
|
__$$UpdateConfigParamsImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "profile-path") String? profilePath,
|
|
ClashConfig config,
|
|
@JsonKey(name: "is-patch") bool isPatch,
|
|
@JsonKey(name: "is-compatible") bool isCompatible});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$UpdateConfigParamsImplCopyWithImpl<$Res>
|
|
extends _$UpdateConfigParamsCopyWithImpl<$Res, _$UpdateConfigParamsImpl>
|
|
implements _$$UpdateConfigParamsImplCopyWith<$Res> {
|
|
__$$UpdateConfigParamsImplCopyWithImpl(_$UpdateConfigParamsImpl _value,
|
|
$Res Function(_$UpdateConfigParamsImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? profilePath = freezed,
|
|
Object? config = null,
|
|
Object? isPatch = null,
|
|
Object? isCompatible = null,
|
|
}) {
|
|
return _then(_$UpdateConfigParamsImpl(
|
|
profilePath: freezed == profilePath
|
|
? _value.profilePath
|
|
: profilePath // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
config: null == config
|
|
? _value.config
|
|
: config // ignore: cast_nullable_to_non_nullable
|
|
as ClashConfig,
|
|
isPatch: null == isPatch
|
|
? _value.isPatch
|
|
: isPatch // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
isCompatible: null == isCompatible
|
|
? _value.isCompatible
|
|
: isCompatible // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$UpdateConfigParamsImpl implements _UpdateConfigParams {
|
|
const _$UpdateConfigParamsImpl(
|
|
{@JsonKey(name: "profile-path") this.profilePath,
|
|
required this.config,
|
|
@JsonKey(name: "is-patch") required this.isPatch,
|
|
@JsonKey(name: "is-compatible") required this.isCompatible});
|
|
|
|
factory _$UpdateConfigParamsImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$UpdateConfigParamsImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "profile-path")
|
|
final String? profilePath;
|
|
@override
|
|
final ClashConfig config;
|
|
@override
|
|
@JsonKey(name: "is-patch")
|
|
final bool isPatch;
|
|
@override
|
|
@JsonKey(name: "is-compatible")
|
|
final bool isCompatible;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'UpdateConfigParams(profilePath: $profilePath, config: $config, isPatch: $isPatch, isCompatible: $isCompatible)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$UpdateConfigParamsImpl &&
|
|
(identical(other.profilePath, profilePath) ||
|
|
other.profilePath == profilePath) &&
|
|
(identical(other.config, config) || other.config == config) &&
|
|
(identical(other.isPatch, isPatch) || other.isPatch == isPatch) &&
|
|
(identical(other.isCompatible, isCompatible) ||
|
|
other.isCompatible == isCompatible));
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(runtimeType, profilePath, config, isPatch, isCompatible);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$UpdateConfigParamsImplCopyWith<_$UpdateConfigParamsImpl> get copyWith =>
|
|
__$$UpdateConfigParamsImplCopyWithImpl<_$UpdateConfigParamsImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$UpdateConfigParamsImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _UpdateConfigParams implements UpdateConfigParams {
|
|
const factory _UpdateConfigParams(
|
|
{@JsonKey(name: "profile-path") final String? profilePath,
|
|
required final ClashConfig config,
|
|
@JsonKey(name: "is-patch") required final bool isPatch,
|
|
@JsonKey(name: "is-compatible") required final bool isCompatible}) =
|
|
_$UpdateConfigParamsImpl;
|
|
|
|
factory _UpdateConfigParams.fromJson(Map<String, dynamic> json) =
|
|
_$UpdateConfigParamsImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "profile-path")
|
|
String? get profilePath;
|
|
@override
|
|
ClashConfig get config;
|
|
@override
|
|
@JsonKey(name: "is-patch")
|
|
bool get isPatch;
|
|
@override
|
|
@JsonKey(name: "is-compatible")
|
|
bool get isCompatible;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$UpdateConfigParamsImplCopyWith<_$UpdateConfigParamsImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
ChangeProxyParams _$ChangeProxyParamsFromJson(Map<String, dynamic> json) {
|
|
return _ChangeProxyParams.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$ChangeProxyParams {
|
|
@JsonKey(name: "group-name")
|
|
String get groupName => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "proxy-name")
|
|
String get proxyName => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$ChangeProxyParamsCopyWith<ChangeProxyParams> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ChangeProxyParamsCopyWith<$Res> {
|
|
factory $ChangeProxyParamsCopyWith(
|
|
ChangeProxyParams value, $Res Function(ChangeProxyParams) then) =
|
|
_$ChangeProxyParamsCopyWithImpl<$Res, ChangeProxyParams>;
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "group-name") String groupName,
|
|
@JsonKey(name: "proxy-name") String proxyName});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ChangeProxyParamsCopyWithImpl<$Res, $Val extends ChangeProxyParams>
|
|
implements $ChangeProxyParamsCopyWith<$Res> {
|
|
_$ChangeProxyParamsCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? groupName = null,
|
|
Object? proxyName = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
groupName: null == groupName
|
|
? _value.groupName
|
|
: groupName // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
proxyName: null == proxyName
|
|
? _value.proxyName
|
|
: proxyName // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ChangeProxyParamsImplCopyWith<$Res>
|
|
implements $ChangeProxyParamsCopyWith<$Res> {
|
|
factory _$$ChangeProxyParamsImplCopyWith(_$ChangeProxyParamsImpl value,
|
|
$Res Function(_$ChangeProxyParamsImpl) then) =
|
|
__$$ChangeProxyParamsImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "group-name") String groupName,
|
|
@JsonKey(name: "proxy-name") String proxyName});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ChangeProxyParamsImplCopyWithImpl<$Res>
|
|
extends _$ChangeProxyParamsCopyWithImpl<$Res, _$ChangeProxyParamsImpl>
|
|
implements _$$ChangeProxyParamsImplCopyWith<$Res> {
|
|
__$$ChangeProxyParamsImplCopyWithImpl(_$ChangeProxyParamsImpl _value,
|
|
$Res Function(_$ChangeProxyParamsImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? groupName = null,
|
|
Object? proxyName = null,
|
|
}) {
|
|
return _then(_$ChangeProxyParamsImpl(
|
|
groupName: null == groupName
|
|
? _value.groupName
|
|
: groupName // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
proxyName: null == proxyName
|
|
? _value.proxyName
|
|
: proxyName // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$ChangeProxyParamsImpl implements _ChangeProxyParams {
|
|
const _$ChangeProxyParamsImpl(
|
|
{@JsonKey(name: "group-name") required this.groupName,
|
|
@JsonKey(name: "proxy-name") required this.proxyName});
|
|
|
|
factory _$ChangeProxyParamsImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$ChangeProxyParamsImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "group-name")
|
|
final String groupName;
|
|
@override
|
|
@JsonKey(name: "proxy-name")
|
|
final String proxyName;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ChangeProxyParams(groupName: $groupName, proxyName: $proxyName)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ChangeProxyParamsImpl &&
|
|
(identical(other.groupName, groupName) ||
|
|
other.groupName == groupName) &&
|
|
(identical(other.proxyName, proxyName) ||
|
|
other.proxyName == proxyName));
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, groupName, proxyName);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ChangeProxyParamsImplCopyWith<_$ChangeProxyParamsImpl> get copyWith =>
|
|
__$$ChangeProxyParamsImplCopyWithImpl<_$ChangeProxyParamsImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$ChangeProxyParamsImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _ChangeProxyParams implements ChangeProxyParams {
|
|
const factory _ChangeProxyParams(
|
|
{@JsonKey(name: "group-name") required final String groupName,
|
|
@JsonKey(name: "proxy-name") required final String proxyName}) =
|
|
_$ChangeProxyParamsImpl;
|
|
|
|
factory _ChangeProxyParams.fromJson(Map<String, dynamic> json) =
|
|
_$ChangeProxyParamsImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "group-name")
|
|
String get groupName;
|
|
@override
|
|
@JsonKey(name: "proxy-name")
|
|
String get proxyName;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$ChangeProxyParamsImplCopyWith<_$ChangeProxyParamsImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
Message _$MessageFromJson(Map<String, dynamic> json) {
|
|
return _Message.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$Message {
|
|
MessageType get type => throw _privateConstructorUsedError;
|
|
dynamic get data => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$MessageCopyWith<Message> get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $MessageCopyWith<$Res> {
|
|
factory $MessageCopyWith(Message value, $Res Function(Message) then) =
|
|
_$MessageCopyWithImpl<$Res, Message>;
|
|
@useResult
|
|
$Res call({MessageType type, dynamic data});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$MessageCopyWithImpl<$Res, $Val extends Message>
|
|
implements $MessageCopyWith<$Res> {
|
|
_$MessageCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? type = null,
|
|
Object? data = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
type: null == type
|
|
? _value.type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as MessageType,
|
|
data: freezed == data
|
|
? _value.data
|
|
: data // ignore: cast_nullable_to_non_nullable
|
|
as dynamic,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$MessageImplCopyWith<$Res> implements $MessageCopyWith<$Res> {
|
|
factory _$$MessageImplCopyWith(
|
|
_$MessageImpl value, $Res Function(_$MessageImpl) then) =
|
|
__$$MessageImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({MessageType type, dynamic data});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$MessageImplCopyWithImpl<$Res>
|
|
extends _$MessageCopyWithImpl<$Res, _$MessageImpl>
|
|
implements _$$MessageImplCopyWith<$Res> {
|
|
__$$MessageImplCopyWithImpl(
|
|
_$MessageImpl _value, $Res Function(_$MessageImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? type = null,
|
|
Object? data = freezed,
|
|
}) {
|
|
return _then(_$MessageImpl(
|
|
type: null == type
|
|
? _value.type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as MessageType,
|
|
data: freezed == data
|
|
? _value.data
|
|
: data // ignore: cast_nullable_to_non_nullable
|
|
as dynamic,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$MessageImpl implements _Message {
|
|
const _$MessageImpl({required this.type, this.data});
|
|
|
|
factory _$MessageImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$MessageImplFromJson(json);
|
|
|
|
@override
|
|
final MessageType type;
|
|
@override
|
|
final dynamic data;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'Message(type: $type, data: $data)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$MessageImpl &&
|
|
(identical(other.type, type) || other.type == type) &&
|
|
const DeepCollectionEquality().equals(other.data, data));
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(runtimeType, type, const DeepCollectionEquality().hash(data));
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$MessageImplCopyWith<_$MessageImpl> get copyWith =>
|
|
__$$MessageImplCopyWithImpl<_$MessageImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$MessageImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _Message implements Message {
|
|
const factory _Message(
|
|
{required final MessageType type, final dynamic data}) = _$MessageImpl;
|
|
|
|
factory _Message.fromJson(Map<String, dynamic> json) = _$MessageImpl.fromJson;
|
|
|
|
@override
|
|
MessageType get type;
|
|
@override
|
|
dynamic get data;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$MessageImplCopyWith<_$MessageImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
Delay _$DelayFromJson(Map<String, dynamic> json) {
|
|
return _Delay.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$Delay {
|
|
String get name => throw _privateConstructorUsedError;
|
|
int? get value => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$DelayCopyWith<Delay> get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $DelayCopyWith<$Res> {
|
|
factory $DelayCopyWith(Delay value, $Res Function(Delay) then) =
|
|
_$DelayCopyWithImpl<$Res, Delay>;
|
|
@useResult
|
|
$Res call({String name, int? value});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$DelayCopyWithImpl<$Res, $Val extends Delay>
|
|
implements $DelayCopyWith<$Res> {
|
|
_$DelayCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? name = null,
|
|
Object? value = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
value: freezed == value
|
|
? _value.value
|
|
: value // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$DelayImplCopyWith<$Res> implements $DelayCopyWith<$Res> {
|
|
factory _$$DelayImplCopyWith(
|
|
_$DelayImpl value, $Res Function(_$DelayImpl) then) =
|
|
__$$DelayImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({String name, int? value});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$DelayImplCopyWithImpl<$Res>
|
|
extends _$DelayCopyWithImpl<$Res, _$DelayImpl>
|
|
implements _$$DelayImplCopyWith<$Res> {
|
|
__$$DelayImplCopyWithImpl(
|
|
_$DelayImpl _value, $Res Function(_$DelayImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? name = null,
|
|
Object? value = freezed,
|
|
}) {
|
|
return _then(_$DelayImpl(
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
value: freezed == value
|
|
? _value.value
|
|
: value // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$DelayImpl implements _Delay {
|
|
const _$DelayImpl({required this.name, this.value});
|
|
|
|
factory _$DelayImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$DelayImplFromJson(json);
|
|
|
|
@override
|
|
final String name;
|
|
@override
|
|
final int? value;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'Delay(name: $name, value: $value)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$DelayImpl &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.value, value) || other.value == value));
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, name, value);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$DelayImplCopyWith<_$DelayImpl> get copyWith =>
|
|
__$$DelayImplCopyWithImpl<_$DelayImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$DelayImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _Delay implements Delay {
|
|
const factory _Delay({required final String name, final int? value}) =
|
|
_$DelayImpl;
|
|
|
|
factory _Delay.fromJson(Map<String, dynamic> json) = _$DelayImpl.fromJson;
|
|
|
|
@override
|
|
String get name;
|
|
@override
|
|
int? get value;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$DelayImplCopyWith<_$DelayImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
Now _$NowFromJson(Map<String, dynamic> json) {
|
|
return _Now.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$Now {
|
|
String get name => throw _privateConstructorUsedError;
|
|
String get value => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$NowCopyWith<Now> get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $NowCopyWith<$Res> {
|
|
factory $NowCopyWith(Now value, $Res Function(Now) then) =
|
|
_$NowCopyWithImpl<$Res, Now>;
|
|
@useResult
|
|
$Res call({String name, String value});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$NowCopyWithImpl<$Res, $Val extends Now> implements $NowCopyWith<$Res> {
|
|
_$NowCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? name = null,
|
|
Object? value = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
value: null == value
|
|
? _value.value
|
|
: value // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$NowImplCopyWith<$Res> implements $NowCopyWith<$Res> {
|
|
factory _$$NowImplCopyWith(_$NowImpl value, $Res Function(_$NowImpl) then) =
|
|
__$$NowImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({String name, String value});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$NowImplCopyWithImpl<$Res> extends _$NowCopyWithImpl<$Res, _$NowImpl>
|
|
implements _$$NowImplCopyWith<$Res> {
|
|
__$$NowImplCopyWithImpl(_$NowImpl _value, $Res Function(_$NowImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? name = null,
|
|
Object? value = null,
|
|
}) {
|
|
return _then(_$NowImpl(
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
value: null == value
|
|
? _value.value
|
|
: value // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$NowImpl implements _Now {
|
|
const _$NowImpl({required this.name, required this.value});
|
|
|
|
factory _$NowImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$NowImplFromJson(json);
|
|
|
|
@override
|
|
final String name;
|
|
@override
|
|
final String value;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'Now(name: $name, value: $value)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$NowImpl &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.value, value) || other.value == value));
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, name, value);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$NowImplCopyWith<_$NowImpl> get copyWith =>
|
|
__$$NowImplCopyWithImpl<_$NowImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$NowImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _Now implements Now {
|
|
const factory _Now(
|
|
{required final String name, required final String value}) = _$NowImpl;
|
|
|
|
factory _Now.fromJson(Map<String, dynamic> json) = _$NowImpl.fromJson;
|
|
|
|
@override
|
|
String get name;
|
|
@override
|
|
String get value;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$NowImplCopyWith<_$NowImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
Process _$ProcessFromJson(Map<String, dynamic> json) {
|
|
return _Process.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$Process {
|
|
int get id => throw _privateConstructorUsedError;
|
|
Metadata get metadata => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$ProcessCopyWith<Process> get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ProcessCopyWith<$Res> {
|
|
factory $ProcessCopyWith(Process value, $Res Function(Process) then) =
|
|
_$ProcessCopyWithImpl<$Res, Process>;
|
|
@useResult
|
|
$Res call({int id, Metadata metadata});
|
|
|
|
$MetadataCopyWith<$Res> get metadata;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ProcessCopyWithImpl<$Res, $Val extends Process>
|
|
implements $ProcessCopyWith<$Res> {
|
|
_$ProcessCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? metadata = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
metadata: null == metadata
|
|
? _value.metadata
|
|
: metadata // ignore: cast_nullable_to_non_nullable
|
|
as Metadata,
|
|
) as $Val);
|
|
}
|
|
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$MetadataCopyWith<$Res> get metadata {
|
|
return $MetadataCopyWith<$Res>(_value.metadata, (value) {
|
|
return _then(_value.copyWith(metadata: value) as $Val);
|
|
});
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ProcessImplCopyWith<$Res> implements $ProcessCopyWith<$Res> {
|
|
factory _$$ProcessImplCopyWith(
|
|
_$ProcessImpl value, $Res Function(_$ProcessImpl) then) =
|
|
__$$ProcessImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({int id, Metadata metadata});
|
|
|
|
@override
|
|
$MetadataCopyWith<$Res> get metadata;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ProcessImplCopyWithImpl<$Res>
|
|
extends _$ProcessCopyWithImpl<$Res, _$ProcessImpl>
|
|
implements _$$ProcessImplCopyWith<$Res> {
|
|
__$$ProcessImplCopyWithImpl(
|
|
_$ProcessImpl _value, $Res Function(_$ProcessImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? metadata = null,
|
|
}) {
|
|
return _then(_$ProcessImpl(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
metadata: null == metadata
|
|
? _value.metadata
|
|
: metadata // ignore: cast_nullable_to_non_nullable
|
|
as Metadata,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$ProcessImpl implements _Process {
|
|
const _$ProcessImpl({required this.id, required this.metadata});
|
|
|
|
factory _$ProcessImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$ProcessImplFromJson(json);
|
|
|
|
@override
|
|
final int id;
|
|
@override
|
|
final Metadata metadata;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'Process(id: $id, metadata: $metadata)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ProcessImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.metadata, metadata) ||
|
|
other.metadata == metadata));
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, id, metadata);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ProcessImplCopyWith<_$ProcessImpl> get copyWith =>
|
|
__$$ProcessImplCopyWithImpl<_$ProcessImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$ProcessImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _Process implements Process {
|
|
const factory _Process(
|
|
{required final int id,
|
|
required final Metadata metadata}) = _$ProcessImpl;
|
|
|
|
factory _Process.fromJson(Map<String, dynamic> json) = _$ProcessImpl.fromJson;
|
|
|
|
@override
|
|
int get id;
|
|
@override
|
|
Metadata get metadata;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$ProcessImplCopyWith<_$ProcessImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
ProcessMapItem _$ProcessMapItemFromJson(Map<String, dynamic> json) {
|
|
return _ProcessMapItem.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$ProcessMapItem {
|
|
int get id => throw _privateConstructorUsedError;
|
|
String? get value => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$ProcessMapItemCopyWith<ProcessMapItem> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ProcessMapItemCopyWith<$Res> {
|
|
factory $ProcessMapItemCopyWith(
|
|
ProcessMapItem value, $Res Function(ProcessMapItem) then) =
|
|
_$ProcessMapItemCopyWithImpl<$Res, ProcessMapItem>;
|
|
@useResult
|
|
$Res call({int id, String? value});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ProcessMapItemCopyWithImpl<$Res, $Val extends ProcessMapItem>
|
|
implements $ProcessMapItemCopyWith<$Res> {
|
|
_$ProcessMapItemCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? value = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
value: freezed == value
|
|
? _value.value
|
|
: value // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ProcessMapItemImplCopyWith<$Res>
|
|
implements $ProcessMapItemCopyWith<$Res> {
|
|
factory _$$ProcessMapItemImplCopyWith(_$ProcessMapItemImpl value,
|
|
$Res Function(_$ProcessMapItemImpl) then) =
|
|
__$$ProcessMapItemImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({int id, String? value});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ProcessMapItemImplCopyWithImpl<$Res>
|
|
extends _$ProcessMapItemCopyWithImpl<$Res, _$ProcessMapItemImpl>
|
|
implements _$$ProcessMapItemImplCopyWith<$Res> {
|
|
__$$ProcessMapItemImplCopyWithImpl(
|
|
_$ProcessMapItemImpl _value, $Res Function(_$ProcessMapItemImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? value = freezed,
|
|
}) {
|
|
return _then(_$ProcessMapItemImpl(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
value: freezed == value
|
|
? _value.value
|
|
: value // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$ProcessMapItemImpl implements _ProcessMapItem {
|
|
const _$ProcessMapItemImpl({required this.id, this.value});
|
|
|
|
factory _$ProcessMapItemImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$ProcessMapItemImplFromJson(json);
|
|
|
|
@override
|
|
final int id;
|
|
@override
|
|
final String? value;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ProcessMapItem(id: $id, value: $value)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ProcessMapItemImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.value, value) || other.value == value));
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, id, value);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ProcessMapItemImplCopyWith<_$ProcessMapItemImpl> get copyWith =>
|
|
__$$ProcessMapItemImplCopyWithImpl<_$ProcessMapItemImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$ProcessMapItemImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _ProcessMapItem implements ProcessMapItem {
|
|
const factory _ProcessMapItem({required final int id, final String? value}) =
|
|
_$ProcessMapItemImpl;
|
|
|
|
factory _ProcessMapItem.fromJson(Map<String, dynamic> json) =
|
|
_$ProcessMapItemImpl.fromJson;
|
|
|
|
@override
|
|
int get id;
|
|
@override
|
|
String? get value;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$ProcessMapItemImplCopyWith<_$ProcessMapItemImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
ExternalProvider _$ExternalProviderFromJson(Map<String, dynamic> json) {
|
|
return _ExternalProvider.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$ExternalProvider {
|
|
String get name => throw _privateConstructorUsedError;
|
|
String get type => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "vehicle-type")
|
|
String get vehicleType => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "update-at")
|
|
DateTime get updateAt => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$ExternalProviderCopyWith<ExternalProvider> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ExternalProviderCopyWith<$Res> {
|
|
factory $ExternalProviderCopyWith(
|
|
ExternalProvider value, $Res Function(ExternalProvider) then) =
|
|
_$ExternalProviderCopyWithImpl<$Res, ExternalProvider>;
|
|
@useResult
|
|
$Res call(
|
|
{String name,
|
|
String type,
|
|
@JsonKey(name: "vehicle-type") String vehicleType,
|
|
@JsonKey(name: "update-at") DateTime updateAt});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ExternalProviderCopyWithImpl<$Res, $Val extends ExternalProvider>
|
|
implements $ExternalProviderCopyWith<$Res> {
|
|
_$ExternalProviderCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? name = null,
|
|
Object? type = null,
|
|
Object? vehicleType = null,
|
|
Object? updateAt = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
type: null == type
|
|
? _value.type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
vehicleType: null == vehicleType
|
|
? _value.vehicleType
|
|
: vehicleType // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
updateAt: null == updateAt
|
|
? _value.updateAt
|
|
: updateAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ExternalProviderImplCopyWith<$Res>
|
|
implements $ExternalProviderCopyWith<$Res> {
|
|
factory _$$ExternalProviderImplCopyWith(_$ExternalProviderImpl value,
|
|
$Res Function(_$ExternalProviderImpl) then) =
|
|
__$$ExternalProviderImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{String name,
|
|
String type,
|
|
@JsonKey(name: "vehicle-type") String vehicleType,
|
|
@JsonKey(name: "update-at") DateTime updateAt});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ExternalProviderImplCopyWithImpl<$Res>
|
|
extends _$ExternalProviderCopyWithImpl<$Res, _$ExternalProviderImpl>
|
|
implements _$$ExternalProviderImplCopyWith<$Res> {
|
|
__$$ExternalProviderImplCopyWithImpl(_$ExternalProviderImpl _value,
|
|
$Res Function(_$ExternalProviderImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? name = null,
|
|
Object? type = null,
|
|
Object? vehicleType = null,
|
|
Object? updateAt = null,
|
|
}) {
|
|
return _then(_$ExternalProviderImpl(
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
type: null == type
|
|
? _value.type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
vehicleType: null == vehicleType
|
|
? _value.vehicleType
|
|
: vehicleType // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
updateAt: null == updateAt
|
|
? _value.updateAt
|
|
: updateAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$ExternalProviderImpl implements _ExternalProvider {
|
|
const _$ExternalProviderImpl(
|
|
{required this.name,
|
|
required this.type,
|
|
@JsonKey(name: "vehicle-type") required this.vehicleType,
|
|
@JsonKey(name: "update-at") required this.updateAt});
|
|
|
|
factory _$ExternalProviderImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$ExternalProviderImplFromJson(json);
|
|
|
|
@override
|
|
final String name;
|
|
@override
|
|
final String type;
|
|
@override
|
|
@JsonKey(name: "vehicle-type")
|
|
final String vehicleType;
|
|
@override
|
|
@JsonKey(name: "update-at")
|
|
final DateTime updateAt;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ExternalProvider(name: $name, type: $type, vehicleType: $vehicleType, updateAt: $updateAt)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ExternalProviderImpl &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.type, type) || other.type == type) &&
|
|
(identical(other.vehicleType, vehicleType) ||
|
|
other.vehicleType == vehicleType) &&
|
|
(identical(other.updateAt, updateAt) ||
|
|
other.updateAt == updateAt));
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(runtimeType, name, type, vehicleType, updateAt);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ExternalProviderImplCopyWith<_$ExternalProviderImpl> get copyWith =>
|
|
__$$ExternalProviderImplCopyWithImpl<_$ExternalProviderImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$ExternalProviderImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _ExternalProvider implements ExternalProvider {
|
|
const factory _ExternalProvider(
|
|
{required final String name,
|
|
required final String type,
|
|
@JsonKey(name: "vehicle-type") required final String vehicleType,
|
|
@JsonKey(name: "update-at") required final DateTime updateAt}) =
|
|
_$ExternalProviderImpl;
|
|
|
|
factory _ExternalProvider.fromJson(Map<String, dynamic> json) =
|
|
_$ExternalProviderImpl.fromJson;
|
|
|
|
@override
|
|
String get name;
|
|
@override
|
|
String get type;
|
|
@override
|
|
@JsonKey(name: "vehicle-type")
|
|
String get vehicleType;
|
|
@override
|
|
@JsonKey(name: "update-at")
|
|
DateTime get updateAt;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$ExternalProviderImplCopyWith<_$ExternalProviderImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|